pub struct ValidCount(/* private fields */);Expand description
Represents the valid count.
Implementations§
Source§impl ValidCount
impl ValidCount
Sourcepub const fn new() -> ValidCount
pub const fn new() -> ValidCount
Creates a new ValidCount.
Sourcepub const fn create(val: u32) -> ValidCount
pub const fn create(val: u32) -> ValidCount
Creates a new ValidCount from the provided parameter.
Sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of ValidCount.
Trait Implementations§
Source§impl Clone for ValidCount
impl Clone for ValidCount
Source§fn clone(&self) -> ValidCount
fn clone(&self) -> ValidCount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidCount
impl Debug for ValidCount
Source§impl Default for ValidCount
impl Default for ValidCount
Source§fn default() -> ValidCount
fn default() -> ValidCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidCount
impl<'de> Deserialize<'de> for ValidCount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ValidCount
impl Display for ValidCount
Source§impl From<&ValidCount> for XfsMember
impl From<&ValidCount> for XfsMember
Source§fn from(val: &ValidCount) -> XfsMember
fn from(val: &ValidCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<&ValidCount> for XfsValue
impl From<&ValidCount> for XfsValue
Source§fn from(val: &ValidCount) -> XfsValue
fn from(val: &ValidCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<&i32> for ValidCount
impl From<&i32> for ValidCount
Source§fn from(val: &i32) -> ValidCount
fn from(val: &i32) -> ValidCount
Converts to this type from the input type.
Source§impl From<&u32> for ValidCount
impl From<&u32> for ValidCount
Source§fn from(val: &u32) -> ValidCount
fn from(val: &u32) -> ValidCount
Converts to this type from the input type.
Source§impl From<ValidCount> for XfsMember
impl From<ValidCount> for XfsMember
Source§fn from(val: ValidCount) -> XfsMember
fn from(val: ValidCount) -> XfsMember
Converts to this type from the input type.
Source§impl From<ValidCount> for XfsValue
impl From<ValidCount> for XfsValue
Source§fn from(val: ValidCount) -> XfsValue
fn from(val: ValidCount) -> XfsValue
Converts to this type from the input type.
Source§impl From<i32> for ValidCount
impl From<i32> for ValidCount
Source§fn from(val: i32) -> ValidCount
fn from(val: i32) -> ValidCount
Converts to this type from the input type.
Source§impl From<u32> for ValidCount
impl From<u32> for ValidCount
Source§fn from(val: u32) -> ValidCount
fn from(val: u32) -> ValidCount
Converts to this type from the input type.
Source§impl PartialEq for ValidCount
impl PartialEq for ValidCount
Source§impl Serialize for ValidCount
impl Serialize for ValidCount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&XfsMember> for ValidCount
impl TryFrom<&XfsMember> for ValidCount
Source§impl TryFrom<&XfsValue> for ValidCount
impl TryFrom<&XfsValue> for ValidCount
Source§impl TryFrom<XfsMember> for ValidCount
impl TryFrom<XfsMember> for ValidCount
Source§impl TryFrom<XfsValue> for ValidCount
impl TryFrom<XfsValue> for ValidCount
impl Copy for ValidCount
impl Eq for ValidCount
impl StructuralPartialEq for ValidCount
Auto Trait Implementations§
impl Freeze for ValidCount
impl RefUnwindSafe for ValidCount
impl Send for ValidCount
impl Sync for ValidCount
impl Unpin for ValidCount
impl UnwindSafe for ValidCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more