Struct identity_iota::iota::block::output::feature::TagFeature
source · pub struct TagFeature(/* private fields */);
Expand description
Makes it possible to tag outputs with an index, so they can be retrieved through an indexer API.
Implementations§
source§impl TagFeature
impl TagFeature
sourcepub const KIND: u8 = 3u8
pub const KIND: u8 = 3u8
The Feature
kind of an TagFeature
.
sourcepub const LENGTH_RANGE: RangeInclusive<u8> = _
pub const LENGTH_RANGE: RangeInclusive<u8> = _
Valid lengths for an TagFeature
.
sourcepub fn new(tag: impl Into<Vec<u8>>) -> Result<TagFeature, Error>
pub fn new(tag: impl Into<Vec<u8>>) -> Result<TagFeature, Error>
Creates a new TagFeature
.
Trait Implementations§
source§impl Clone for TagFeature
impl Clone for TagFeature
source§fn clone(&self) -> TagFeature
fn clone(&self) -> TagFeature
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 TagFeature
impl Debug for TagFeature
source§impl Display for TagFeature
impl Display for TagFeature
source§impl From<TagFeature> for Feature
impl From<TagFeature> for Feature
source§fn from(original: TagFeature) -> Feature
fn from(original: TagFeature) -> Feature
Converts to this type from the input type.
source§impl Hash for TagFeature
impl Hash for TagFeature
source§impl Ord for TagFeature
impl Ord for TagFeature
source§fn cmp(&self, other: &TagFeature) -> Ordering
fn cmp(&self, other: &TagFeature) -> 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 TagFeature
impl Packable for TagFeature
§type UnpackError = Error
type UnpackError = Error
The error type that can be returned if some semantic error occurs while unpacking. Read more
§type UnpackVisitor = <BoxedSlicePrefix<u8, BoundedU8<iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#1}>> as Packable>::UnpackVisitor
type UnpackVisitor = <BoxedSlicePrefix<u8, BoundedU8<iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#0}, iota_sdk::::types::block::output::feature::tag::TagFeatureLength::{constant#1}>> as Packable>::UnpackVisitor
FIXME: docs
source§fn pack<P>(&self, packer: &mut P) -> Result<(), <P as Packer>::Error>where
P: Packer,
fn pack<P>(&self, packer: &mut P) -> Result<(), <P as Packer>::Error>where
P: Packer,
Packs this value into the given
Packer
.source§fn unpack<U, const VERIFY: bool>(
unpacker: &mut U,
visitor: &<TagFeature as Packable>::UnpackVisitor
) -> Result<TagFeature, UnpackError<<TagFeature as Packable>::UnpackError, <U as Unpacker>::Error>>where
U: Unpacker,
fn unpack<U, const VERIFY: bool>(
unpacker: &mut U,
visitor: &<TagFeature as Packable>::UnpackVisitor
) -> Result<TagFeature, UnpackError<<TagFeature as Packable>::UnpackError, <U as Unpacker>::Error>>where
U: Unpacker,
Unpacks this value from the given
Unpacker
. The VERIFY
generic parameter can be used to skip additional
syntactic checks.source§impl PartialEq for TagFeature
impl PartialEq for TagFeature
source§fn eq(&self, other: &TagFeature) -> bool
fn eq(&self, other: &TagFeature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TagFeature
impl PartialOrd for TagFeature
source§fn partial_cmp(&self, other: &TagFeature) -> Option<Ordering>
fn partial_cmp(&self, other: &TagFeature) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TagFeature
impl StructuralPartialEq for TagFeature
Auto Trait Implementations§
impl Freeze for TagFeature
impl RefUnwindSafe for TagFeature
impl Send for TagFeature
impl Sync for TagFeature
impl Unpin for TagFeature
impl UnwindSafe for TagFeature
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
source§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]>
].
source§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.
source§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
.