pub struct MetadataFeature(/* private fields */);Expand description
Defines metadata, arbitrary binary data, that will be stored in the output.
Implementations§
Source§impl MetadataFeature
impl MetadataFeature
Sourcepub const KIND: u8 = 2u8
pub const KIND: u8 = 2u8
The Feature kind of
MetadataFeature.
Sourcepub const LENGTH_RANGE: RangeInclusive<u16>
pub const LENGTH_RANGE: RangeInclusive<u16>
Valid lengths for a MetadataFeature.
Trait Implementations§
Source§impl Clone for MetadataFeature
impl Clone for MetadataFeature
Source§fn clone(&self) -> MetadataFeature
fn clone(&self) -> MetadataFeature
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 MetadataFeature
impl Debug for MetadataFeature
Source§impl Display for MetadataFeature
impl Display for MetadataFeature
Source§impl From<MetadataFeature> for Feature
impl From<MetadataFeature> for Feature
Source§fn from(value: MetadataFeature) -> Self
fn from(value: MetadataFeature) -> Self
Converts to this type from the input type.
Source§impl FromStr for MetadataFeature
impl FromStr for MetadataFeature
Source§impl Hash for MetadataFeature
impl Hash for MetadataFeature
Source§impl Ord for MetadataFeature
impl Ord for MetadataFeature
Source§fn cmp(&self, other: &MetadataFeature) -> Ordering
fn cmp(&self, other: &MetadataFeature) -> 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 Packable for MetadataFeature
impl Packable for MetadataFeature
Source§type UnpackError = Error
type UnpackError = Error
The error type that can be returned if some semantic error occurs while unpacking. Read more
Source§type UnpackVisitor = <BoxedSlicePrefix<u8, BoundedU16<{ *MetadataFeature::LENGTH_RANGE.start() }, { *MetadataFeature::LENGTH_RANGE.end() }>> as Packable>::UnpackVisitor
type UnpackVisitor = <BoxedSlicePrefix<u8, BoundedU16<{ *MetadataFeature::LENGTH_RANGE.start() }, { *MetadataFeature::LENGTH_RANGE.end() }>> as Packable>::UnpackVisitor
FIXME: docs
Source§impl PartialEq for MetadataFeature
impl PartialEq for MetadataFeature
Source§impl PartialOrd for MetadataFeature
impl PartialOrd for MetadataFeature
Source§impl TryFrom<&[u8]> for MetadataFeature
impl TryFrom<&[u8]> for MetadataFeature
Source§impl TryFrom<&str> for MetadataFeature
impl TryFrom<&str> for MetadataFeature
Source§impl TryFrom<Irc27Metadata> for MetadataFeature
impl TryFrom<Irc27Metadata> for MetadataFeature
Source§impl TryFrom<Irc30Metadata> for MetadataFeature
impl TryFrom<Irc30Metadata> for MetadataFeature
Source§impl TryFrom<String> for MetadataFeature
impl TryFrom<String> for MetadataFeature
impl Eq for MetadataFeature
impl StructuralPartialEq for MetadataFeature
Auto Trait Implementations§
impl Freeze for MetadataFeature
impl RefUnwindSafe for MetadataFeature
impl Send for MetadataFeature
impl Sync for MetadataFeature
impl Unpin for MetadataFeature
impl UnwindSafe for MetadataFeature
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
§fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_verified<T>( bytes: T, visitor: &<P as Packable>::UnpackVisitor, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>].
§fn unpack_unverified<T>(
bytes: T,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_unverified<T>( bytes: T, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>] skipping some syntatical checks.
§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length in bytes of the value after being packed. The returned value always matches the number of
bytes written using
pack.