pub struct Counter { /* private fields */ }
Implementations§
Source§impl Counter
impl Counter
pub fn new( count: Option<u32>, count_b64: Option<&str>, code: Option<&str>, qb64b: Option<&[u8]>, qb64: Option<&str>, qb2: Option<&[u8]>, ) -> Result<Self>
pub fn code(&self) -> String
pub fn count(&self) -> u32
pub fn count_as_b64(&self, length: usize) -> Result<String>
pub fn qb64(&self) -> Result<String>
pub fn qb64b(&self) -> Result<Vec<u8>>
pub fn qb2(&self) -> Result<Vec<u8>>
pub fn sem_ver_str_to_b64(version: &str) -> Result<String>
pub fn sem_ver_to_b64(major: u8, minor: u8, patch: u8) -> Result<String>
pub fn new_with_code_and_count(code: &str, count: u32) -> Result<Self>
pub fn new_with_qb64(qb64: &str) -> Result<Self>
pub fn new_with_qb64b(qb64b: &[u8]) -> Result<Self>
pub fn new_with_qb2(qb2: &[u8]) -> Result<Self>
pub fn full_size(&self) -> Result<usize>
Trait Implementations§
impl StructuralPartialEq for Counter
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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