pub struct Slice<T> { /* private fields */ }Expand description
Relative range within a compiled query segment.
Used for variable-length data (successors, effects, negated fields, type members). The slice references elements by index into the corresponding segment array.
Layout: 8 bytes (4 + 2 + 2), align 4.
Implementations§
Source§impl<T> Slice<T>
impl<T> Slice<T>
Sourcepub fn start_index(&self) -> u32
pub fn start_index(&self) -> u32
Returns the start index (element index, not byte offset).
Sourcepub const fn from_inner_type(type_id: u16) -> Self
pub const fn from_inner_type(type_id: u16) -> Self
Creates a slice encoding an inner type ID (for wrapper TypeDef).
The start_index stores the TypeId as u32, len is 0.
Trait Implementations§
impl<T: Copy> Copy for Slice<T>
impl<T> Eq for Slice<T>
Auto Trait Implementations§
impl<T> Freeze for Slice<T>
impl<T> RefUnwindSafe for Slice<T>
impl<T> Send for Slice<T>
impl<T> Sync for Slice<T>
impl<T> Unpin for Slice<T>
impl<T> UnwindSafe for Slice<T>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.