pub struct Prefixer { /* private fields */ }
Implementations§
Source§impl Prefixer
impl Prefixer
pub fn new( ked: Option<&Value>, allows: Option<&[&str]>, code: Option<&str>, raw: Option<&[u8]>, qb64b: Option<&[u8]>, qb64: Option<&str>, qb2: Option<&[u8]>, ) -> Result<Self>
pub fn new_with_ked( ked: &Value, allows: Option<&[&str]>, code: Option<&str>, ) -> Result<Self>
pub fn new_with_raw(raw: &[u8], code: Option<&str>) -> Result<Self>
pub fn new_with_qb64b(qb64b: &[u8]) -> Result<Self>
pub fn new_with_qb64(qb64: &str) -> Result<Self>
pub fn new_with_qb2(qb2: &[u8]) -> Result<Self>
pub fn verify(&self, ked: &Value, prefixed: Option<bool>) -> Result<bool>
Trait Implementations§
Source§impl Matter for Prefixer
impl Matter for Prefixer
fn code(&self) -> String
fn raw(&self) -> Vec<u8> ⓘ
fn size(&self) -> u32
fn set_code(&mut self, code: &str)
fn set_raw(&mut self, raw: &[u8])
fn set_size(&mut self, size: u32)
fn new( code: Option<&str>, raw: Option<&[u8]>, qb64b: Option<&[u8]>, qb64: Option<&str>, qb2: Option<&[u8]>, ) -> Result<Self>
fn new_with_code_and_raw(code: &str, raw: &[u8]) -> Result<Self>where
Self: Sized,
fn new_with_qb64(qb64: &str) -> Result<Self>where
Self: Sized,
fn new_with_qb64b(qb64b: &[u8]) -> Result<Self>where
Self: Sized,
fn new_with_qb2(qb2: &[u8]) -> Result<Self>where
Self: Sized,
fn qb64(&self) -> Result<String>
fn qb64b(&self) -> Result<Vec<u8>>
fn qb2(&self) -> Result<Vec<u8>>
fn digestive(&self) -> bool
fn transferable(&self) -> bool
fn infil(&self) -> Result<String>
fn binfil(&self) -> Result<Vec<u8>>
fn exfil(&mut self, qb64: &str) -> Result<()>
fn bexfil(&mut self, qb2: &[u8]) -> Result<()>
fn full_size(&self) -> Result<usize>
impl StructuralPartialEq for Prefixer
Auto Trait Implementations§
impl Freeze for Prefixer
impl RefUnwindSafe for Prefixer
impl Send for Prefixer
impl Sync for Prefixer
impl Unpin for Prefixer
impl UnwindSafe for Prefixer
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