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