/// In nanoseconds.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Deserialize,
    conjure_object::serde::Serialize,
    Copy,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash,
    Default
)]
#[serde(crate = "conjure_object::serde", transparent)]
pub struct Resolution(pub conjure_object::SafeLong);
impl std::fmt::Display for Resolution {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        std::fmt::Display::fmt(&self.0, fmt)
    }
}
impl conjure_object::Plain for Resolution {
    fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        conjure_object::Plain::fmt(&self.0, fmt)
    }
}
impl conjure_object::FromPlain for Resolution {
    type Err = <conjure_object::SafeLong as conjure_object::FromPlain>::Err;
    #[inline]
    fn from_plain(s: &str) -> Result<Resolution, Self::Err> {
        conjure_object::FromPlain::from_plain(s).map(Resolution)
    }
}
impl std::convert::From<conjure_object::SafeLong> for Resolution {
    #[inline]
    fn from(v: conjure_object::SafeLong) -> Self {
        Resolution(std::convert::From::from(v))
    }
}
impl std::ops::Deref for Resolution {
    type Target = conjure_object::SafeLong;
    #[inline]
    fn deref(&self) -> &conjure_object::SafeLong {
        &self.0
    }
}
impl std::ops::DerefMut for Resolution {
    #[inline]
    fn deref_mut(&mut self) -> &mut conjure_object::SafeLong {
        &mut self.0
    }
}
impl std::convert::AsRef<conjure_object::SafeLong> for Resolution {
    #[inline]
    fn as_ref(&self) -> &conjure_object::SafeLong {
        &self.0
    }
}
