pub struct Seq<'a> {
pub encoded: &'a [u8],
/* private fields */
}
Expand description
The sequence of a record.
Fields§
§encoded: &'a [u8]
Implementations§
Source§impl<'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> ⓘ
pub fn as_bytes(&self) -> Vec<u8> ⓘ
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§
impl<'a> Freeze for Seq<'a>
impl<'a> RefUnwindSafe for Seq<'a>
impl<'a> Unpin for Seq<'a>
impl<'a> UnwindSafe for Seq<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)