pub struct Seq<'a> {
pub encoded: &'a [u8],
/* private fields */
}
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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