Struct bnr::ForgeryCount
source · #[repr(C)]pub struct ForgeryCount(/* private fields */);Expand description
Represents the DepositCounters forgery count.
Implementations§
source§impl ForgeryCount
impl ForgeryCount
sourcepub const fn new() -> ForgeryCount
pub const fn new() -> ForgeryCount
Creates a new ForgeryCount.
sourcepub const fn create(val: u32) -> ForgeryCount
pub const fn create(val: u32) -> ForgeryCount
Creates a new ForgeryCount from the provided parameter.
sourcepub const fn inner(&self) -> u32
pub const fn inner(&self) -> u32
Gets the inner representation of the ForgeryCount.
sourcepub fn set_inner(&mut self, val: u32)
pub fn set_inner(&mut self, val: u32)
Sets the inner representation of the ForgeryCount.
sourcepub fn into_inner(self) -> u32
pub fn into_inner(self) -> u32
Converts into the inner representation of the ForgeryCount.
Trait Implementations§
source§impl Clone for ForgeryCount
impl Clone for ForgeryCount
source§fn clone(&self) -> ForgeryCount
fn clone(&self) -> ForgeryCount
Returns a copy 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 ForgeryCount
impl Debug for ForgeryCount
source§impl Default for ForgeryCount
impl Default for ForgeryCount
source§fn default() -> ForgeryCount
fn default() -> ForgeryCount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ForgeryCount
impl<'de> Deserialize<'de> for ForgeryCount
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ForgeryCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ForgeryCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ForgeryCount
impl Display for ForgeryCount
source§impl From<&ForgeryCount> for XfsMember
impl From<&ForgeryCount> for XfsMember
source§fn from(val: &ForgeryCount) -> XfsMember
fn from(val: &ForgeryCount) -> XfsMember
Converts to this type from the input type.
source§impl From<&ForgeryCount> for XfsValue
impl From<&ForgeryCount> for XfsValue
source§fn from(val: &ForgeryCount) -> XfsValue
fn from(val: &ForgeryCount) -> XfsValue
Converts to this type from the input type.
source§impl From<&i32> for ForgeryCount
impl From<&i32> for ForgeryCount
source§fn from(val: &i32) -> ForgeryCount
fn from(val: &i32) -> ForgeryCount
Converts to this type from the input type.
source§impl From<&u32> for ForgeryCount
impl From<&u32> for ForgeryCount
source§fn from(val: &u32) -> ForgeryCount
fn from(val: &u32) -> ForgeryCount
Converts to this type from the input type.
source§impl From<ForgeryCount> for XfsMember
impl From<ForgeryCount> for XfsMember
source§fn from(val: ForgeryCount) -> XfsMember
fn from(val: ForgeryCount) -> XfsMember
Converts to this type from the input type.
source§impl From<ForgeryCount> for XfsValue
impl From<ForgeryCount> for XfsValue
source§fn from(val: ForgeryCount) -> XfsValue
fn from(val: ForgeryCount) -> XfsValue
Converts to this type from the input type.
source§impl From<i32> for ForgeryCount
impl From<i32> for ForgeryCount
source§fn from(val: i32) -> ForgeryCount
fn from(val: i32) -> ForgeryCount
Converts to this type from the input type.
source§impl From<u32> for ForgeryCount
impl From<u32> for ForgeryCount
source§fn from(val: u32) -> ForgeryCount
fn from(val: u32) -> ForgeryCount
Converts to this type from the input type.
source§impl PartialEq for ForgeryCount
impl PartialEq for ForgeryCount
source§fn eq(&self, other: &ForgeryCount) -> bool
fn eq(&self, other: &ForgeryCount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ForgeryCount
impl Serialize for ForgeryCount
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 ForgeryCount
impl TryFrom<&XfsMember> for ForgeryCount
source§impl TryFrom<&XfsValue> for ForgeryCount
impl TryFrom<&XfsValue> for ForgeryCount
source§impl TryFrom<XfsMember> for ForgeryCount
impl TryFrom<XfsMember> for ForgeryCount
source§impl TryFrom<XfsValue> for ForgeryCount
impl TryFrom<XfsValue> for ForgeryCount
impl Copy for ForgeryCount
impl StructuralPartialEq for ForgeryCount
Auto Trait Implementations§
impl RefUnwindSafe for ForgeryCount
impl Send for ForgeryCount
impl Sync for ForgeryCount
impl Unpin for ForgeryCount
impl UnwindSafe for ForgeryCount
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