Enum lightning_invoice::RawTaggedField
source · [−]pub enum RawTaggedField {
KnownSemantics(TaggedField),
UnknownSemantics(Vec<u5>),
}
Expand description
Tagged field which may have an unknown tag
(C-not exported) as we don’t currently support TaggedField
Variants
KnownSemantics(TaggedField)
Parsed tagged field with known tag
UnknownSemantics(Vec<u5>)
tagged field which was not parsed due to an unknown tag or undefined field semantics
Trait Implementations
sourceimpl Clone for RawTaggedField
impl Clone for RawTaggedField
sourcefn clone(&self) -> RawTaggedField
fn clone(&self) -> RawTaggedField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RawTaggedField
impl Debug for RawTaggedField
sourceimpl From<TaggedField> for RawTaggedField
impl From<TaggedField> for RawTaggedField
sourcefn from(tf: TaggedField) -> Self
fn from(tf: TaggedField) -> Self
Converts to this type from the input type.
sourceimpl Hash for RawTaggedField
impl Hash for RawTaggedField
sourceimpl PartialEq<RawTaggedField> for RawTaggedField
impl PartialEq<RawTaggedField> for RawTaggedField
sourcefn eq(&self, other: &RawTaggedField) -> bool
fn eq(&self, other: &RawTaggedField) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ToBase32 for RawTaggedField
impl ToBase32 for RawTaggedField
sourcefn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
impl Eq for RawTaggedField
impl StructuralEq for RawTaggedField
impl StructuralPartialEq for RawTaggedField
Auto Trait Implementations
impl RefUnwindSafe for RawTaggedField
impl Send for RawTaggedField
impl Sync for RawTaggedField
impl Unpin for RawTaggedField
impl UnwindSafe for RawTaggedField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more