Trait PFieldsExt

pub trait PFieldsExt: PFields {
Show 31 methods // Provided methods fn fields(&self) -> PFieldsEnum<'_> { ... } fn point_header(&self) -> PFieldsHeader { ... } fn is_datapoint(&self) -> bool { ... } fn is_linkpoint(&self) -> bool { ... } fn is_keypoint(&self) -> bool { ... } fn is_signed(&self) -> bool { ... } fn as_datapoint(&self) -> Option<&[u8]> { ... } fn as_linkpoint(&self) -> Option<LinkFields<'_>> { ... } fn as_keypoint(&self) -> Option<(LinkFields<'_>, Signed)> { ... } fn group(&self) -> Option<&B64<[u8; 32]>> { ... } fn get_group(&self) -> &B64<[u8; 32]> { ... } fn domain(&self) -> Option<&AB<[u8; 16]>> { ... } fn get_domain(&self) -> &AB<[u8; 16]> { ... } fn stamp(&self) -> Option<&U64> { ... } fn get_stamp(&self) -> &U64 { ... } fn signature(&self) -> Option<&B64<[u8; 64]>> { ... } fn get_signature(&self) -> &B64<[u8; 64]> { ... } fn pubkey(&self) -> Option<&B64<[u8; 32]>> { ... } fn get_pubkey(&self) -> &B64<[u8; 32]> { ... } fn path(&self) -> Option<&LkPath> { ... } fn pathsegm(&self) -> Option<&LkPathSegm> { ... } fn links(&self) -> Option<&[Link]> { ... } fn nparts(&self) -> Option<&u8> { ... } fn get_nparts(&self) -> &u8 { ... } fn get_path(&self) -> &LkPath { ... } fn get_pathsegm(&self) -> &LkPathSegm { ... } fn data_str(&self) -> Result<&str, Utf8Error> { ... } fn get_links(&self) -> &[Link] { ... } fn links_select(&self) -> Links<'_> { ... } fn compute_hash(&self) -> B64<[u8; 32]> { ... } fn check_private(&self) -> Result<(), Error> { ... }
}
Expand description

Helper trait to access a Point’s fields like domain, group, links, publickey, etc.

Provided Methods§

fn fields(&self) -> PFieldsEnum<'_>

fn point_header(&self) -> PFieldsHeader

fn is_datapoint(&self) -> bool

fn is_linkpoint(&self) -> bool

fn is_keypoint(&self) -> bool

fn is_signed(&self) -> bool

fn as_datapoint(&self) -> Option<&[u8]>

fn as_linkpoint(&self) -> Option<LinkFields<'_>>

fn as_keypoint(&self) -> Option<(LinkFields<'_>, Signed)>

fn group(&self) -> Option<&B64<[u8; 32]>>

fn get_group(&self) -> &B64<[u8; 32]>

fn domain(&self) -> Option<&AB<[u8; 16]>>

fn get_domain(&self) -> &AB<[u8; 16]>

fn stamp(&self) -> Option<&U64>

fn get_stamp(&self) -> &U64

fn signature(&self) -> Option<&B64<[u8; 64]>>

fn get_signature(&self) -> &B64<[u8; 64]>

fn pubkey(&self) -> Option<&B64<[u8; 32]>>

fn get_pubkey(&self) -> &B64<[u8; 32]>

fn path(&self) -> Option<&LkPath>

fn pathsegm(&self) -> Option<&LkPathSegm>

fn nparts(&self) -> Option<&u8>

fn get_nparts(&self) -> &u8

fn get_path(&self) -> &LkPath

fn get_pathsegm(&self) -> &LkPathSegm

fn data_str(&self) -> Result<&str, Utf8Error>

fn compute_hash(&self) -> B64<[u8; 32]>

fn check_private(&self) -> Result<(), Error>

Implementors§

§

impl<T> PFieldsExt for T
where T: PFields + ?Sized,