pub enum Content {
None,
Bip380,
Bip388,
Bip329,
BIP(u16),
Proprietary(Vec<u8>),
Unknown,
}Variants§
Implementations§
Trait Implementations§
Source§impl From<Content> for Vec<u8>
Encode content metadata, 3 variants:
impl From<Content> for Vec<u8>
Encode content metadata, 3 variants:
- <LENGTH == 0> => None
- <LENGTH == 2><BIP_NUMBER> => encoding format defined in BIP<BIP_NUMBER>
2> => proprietary
impl Eq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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