You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ref_count.rs
    path of file: ./repos/windows-rs/crates/libs/core/src/imp
    
    the code of the file until where you have to start completion: use std::sync::atomic::{fence, AtomicI32, Ordering};

#[doc(hidden)]
#[repr(transparent)]
#[derive(Default)]
pub struct RefCount(pub(crate) AtomicI32);

impl RefCount {
    /// Creates a new `RefCount` with an initial value of `1`.
    pub fn new(count: u32) -> Self {
        Self(AtomicI32::new(count as i32))
    }

    /// Increm
    
    pub fn release(&self) -> u32 {
        let remaining = self.0.fetch_sub(1, Ordering::Release) - 1;

        match remaining.cmp(&0) {
            std::cmp::Ordering::Equal => fence(Ordering::Acquire),
            std::cmp::Ordering::Less => panic!("Object has been over-released."),
            std::cmp::Ordering::Greater => {}
        }

        remaining as u32
    }