pub struct AdjacencyRecord { /* private fields */ }Expand description
Binary representation of a token’s outgoing relation range.
The token identifier is implicit from this record’s position inside the adjacency section.
Implementations§
Source§impl AdjacencyRecord
impl AdjacencyRecord
pub const SIZE: usize = ADJACENCY_RECORD_SIZE
pub const fn new(offset: u64, count: u32) -> Self
pub const fn offset(self) -> u64
pub const fn count(self) -> u32
pub const fn end(self) -> u64
pub fn encode(self) -> [u8; 16]
pub fn decode(bytes: &[u8]) -> Result<Self, FormatError>
Trait Implementations§
Source§impl BinaryRecord for AdjacencyRecord
impl BinaryRecord for AdjacencyRecord
Source§impl Clone for AdjacencyRecord
impl Clone for AdjacencyRecord
Source§fn clone(&self) -> AdjacencyRecord
fn clone(&self) -> AdjacencyRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdjacencyRecord
Source§impl Debug for AdjacencyRecord
impl Debug for AdjacencyRecord
impl Eq for AdjacencyRecord
Source§impl PartialEq for AdjacencyRecord
impl PartialEq for AdjacencyRecord
impl StructuralPartialEq for AdjacencyRecord
Auto Trait Implementations§
impl Freeze for AdjacencyRecord
impl RefUnwindSafe for AdjacencyRecord
impl Send for AdjacencyRecord
impl Sync for AdjacencyRecord
impl Unpin for AdjacencyRecord
impl UnsafeUnpin for AdjacencyRecord
impl UnwindSafe for AdjacencyRecord
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