pub struct SegmentNameComponent {
pub segment_number: NonNegativeInteger,
}
Fields§
§segment_number: NonNegativeInteger
Implementations§
Source§impl SegmentNameComponent
impl SegmentNameComponent
pub fn new(segment_number: NonNegativeInteger) -> Self
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for SegmentNameComponent
impl AsMut<NonNegativeInteger> for SegmentNameComponent
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 SegmentNameComponent
impl AsRef<NonNegativeInteger> for SegmentNameComponent
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 SegmentNameComponent
impl Clone for SegmentNameComponent
Source§fn clone(&self) -> SegmentNameComponent
fn clone(&self) -> SegmentNameComponent
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 SegmentNameComponent
impl Debug for SegmentNameComponent
Source§impl Default for SegmentNameComponent
impl Default for SegmentNameComponent
Source§fn default() -> SegmentNameComponent
fn default() -> SegmentNameComponent
Returns the “default value” for a type. Read more
Source§impl Display for SegmentNameComponent
impl Display for SegmentNameComponent
Source§impl From<NonNegativeInteger> for SegmentNameComponent
impl From<NonNegativeInteger> for SegmentNameComponent
Source§fn from(original: NonNegativeInteger) -> SegmentNameComponent
fn from(original: NonNegativeInteger) -> SegmentNameComponent
Converts to this type from the input type.
Source§impl From<SegmentNameComponent> for NameComponent
impl From<SegmentNameComponent> for NameComponent
Source§fn from(original: SegmentNameComponent) -> NameComponent
fn from(original: SegmentNameComponent) -> NameComponent
Converts to this type from the input type.
Source§impl From<SegmentNameComponent> for NonNegativeInteger
impl From<SegmentNameComponent> for NonNegativeInteger
Source§fn from(original: SegmentNameComponent) -> Self
fn from(original: SegmentNameComponent) -> Self
Converts to this type from the input type.
Source§impl From<u64> for SegmentNameComponent
impl From<u64> for SegmentNameComponent
Source§impl From<usize> for SegmentNameComponent
impl From<usize> for SegmentNameComponent
Source§impl Hash for SegmentNameComponent
impl Hash for SegmentNameComponent
Source§impl Ord for SegmentNameComponent
impl Ord for SegmentNameComponent
Source§fn cmp(&self, other: &SegmentNameComponent) -> Ordering
fn cmp(&self, other: &SegmentNameComponent) -> 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 SegmentNameComponent
impl PartialEq for SegmentNameComponent
Source§impl PartialOrd for SegmentNameComponent
impl PartialOrd for SegmentNameComponent
Source§impl Tlv for SegmentNameComponent
impl Tlv for SegmentNameComponent
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 SegmentNameComponent
impl TlvDecode for SegmentNameComponent
Source§impl TlvEncode for SegmentNameComponent
impl TlvEncode for SegmentNameComponent
impl Eq for SegmentNameComponent
impl StructuralPartialEq for SegmentNameComponent
Auto Trait Implementations§
impl Freeze for SegmentNameComponent
impl RefUnwindSafe for SegmentNameComponent
impl Send for SegmentNameComponent
impl Sync for SegmentNameComponent
impl Unpin for SegmentNameComponent
impl UnwindSafe for SegmentNameComponent
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