Expand description
The sequence of a record.
Fields
encoded: &'a [u8]Implementations
sourceimpl<'a> Seq<'a>
impl<'a> Seq<'a>
sourcepub fn encoded_base(&self, i: usize) -> u8
pub fn encoded_base(&self, i: usize) -> u8
Return encoded base. Complexity: O(1).
sourcepub unsafe fn encoded_base_unchecked(&self, i: usize) -> u8
pub unsafe fn encoded_base_unchecked(&self, i: usize) -> u8
Return encoded base. Complexity: O(1).
sourcepub unsafe fn decoded_base_unchecked(&self, i: usize) -> u8
pub unsafe fn decoded_base_unchecked(&self, i: usize) -> u8
Obtain decoded base without performing bounds checking. Use index based access seq()[i], for checked, safe access. Complexity: O(1).
sourcepub fn as_bytes(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn as_bytes(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Return decoded sequence. Complexity: O(m) with m being the read length.
pub fn is_empty(&self) -> bool
Trait Implementations
impl<'a> Copy for Seq<'a>
impl<'a> Send for Seq<'a>
impl<'a> Sync for Seq<'a>
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more