pub struct VersionNameComponent {
pub version: NonNegativeInteger,
}
Fields§
§version: NonNegativeInteger
Implementations§
Source§impl VersionNameComponent
impl VersionNameComponent
pub fn new(version: NonNegativeInteger) -> Self
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for VersionNameComponent
impl AsMut<NonNegativeInteger> for VersionNameComponent
Source§fn as_mut(&mut self) -> &mut NonNegativeInteger
fn as_mut(&mut self) -> &mut NonNegativeInteger
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<NonNegativeInteger> for VersionNameComponent
impl AsRef<NonNegativeInteger> for VersionNameComponent
Source§fn as_ref(&self) -> &NonNegativeInteger
fn as_ref(&self) -> &NonNegativeInteger
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VersionNameComponent
impl Clone for VersionNameComponent
Source§fn clone(&self) -> VersionNameComponent
fn clone(&self) -> VersionNameComponent
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 VersionNameComponent
impl Debug for VersionNameComponent
Source§impl Default for VersionNameComponent
impl Default for VersionNameComponent
Source§fn default() -> VersionNameComponent
fn default() -> VersionNameComponent
Returns the “default value” for a type. Read more
Source§impl Display for VersionNameComponent
impl Display for VersionNameComponent
Source§impl From<NonNegativeInteger> for VersionNameComponent
impl From<NonNegativeInteger> for VersionNameComponent
Source§fn from(original: NonNegativeInteger) -> VersionNameComponent
fn from(original: NonNegativeInteger) -> VersionNameComponent
Converts to this type from the input type.
Source§impl From<VersionNameComponent> for NameComponent
impl From<VersionNameComponent> for NameComponent
Source§fn from(original: VersionNameComponent) -> NameComponent
fn from(original: VersionNameComponent) -> NameComponent
Converts to this type from the input type.
Source§impl From<VersionNameComponent> for NonNegativeInteger
impl From<VersionNameComponent> for NonNegativeInteger
Source§fn from(original: VersionNameComponent) -> Self
fn from(original: VersionNameComponent) -> Self
Converts to this type from the input type.
Source§impl From<u64> for VersionNameComponent
impl From<u64> for VersionNameComponent
Source§impl From<usize> for VersionNameComponent
impl From<usize> for VersionNameComponent
Source§impl Hash for VersionNameComponent
impl Hash for VersionNameComponent
Source§impl Ord for VersionNameComponent
impl Ord for VersionNameComponent
Source§fn cmp(&self, other: &VersionNameComponent) -> Ordering
fn cmp(&self, other: &VersionNameComponent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionNameComponent
impl PartialEq for VersionNameComponent
Source§impl PartialOrd for VersionNameComponent
impl PartialOrd for VersionNameComponent
Source§impl Tlv for VersionNameComponent
impl Tlv for VersionNameComponent
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
Source§impl TlvDecode for VersionNameComponent
impl TlvDecode for VersionNameComponent
Source§impl TlvEncode for VersionNameComponent
impl TlvEncode for VersionNameComponent
impl Eq for VersionNameComponent
impl StructuralPartialEq for VersionNameComponent
Auto Trait Implementations§
impl Freeze for VersionNameComponent
impl RefUnwindSafe for VersionNameComponent
impl Send for VersionNameComponent
impl Sync for VersionNameComponent
impl Unpin for VersionNameComponent
impl UnwindSafe for VersionNameComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more