Skip to main content

ListDictReader

Struct ListDictReader 

Source
pub struct ListDictReader {
    pub elem_dict_id: u16,
    /* private fields */
}
Expand description

Reader for a ListDict (lazily loaded once via OnceLock).

Fields§

§elem_dict_id: u16

Implementations§

Source§

impl ListDictReader

Source

pub fn entry_count(&self) -> u64

Source

pub fn get_elem_slice( &self, backing: &Backing<'_>, entry_idx: usize, ) -> Result<&[u32]>

Borrow the element ID slice directly from the lazily loaded OnceLock cache (zero allocation).

Source

pub fn get_elem_ids( &self, backing: &Backing<'_>, entry_idx: usize, ) -> Result<Vec<u32>>

Auto Trait Implementations§

§

impl !Freeze for ListDictReader

§

impl Forget for ListDictReader

§

impl Move for ListDictReader

§

impl RefUnwindSafe for ListDictReader
where OnceLock<Arc<DecodedListDict>>: RefUnwindSafe,

§

impl Send for ListDictReader
where OnceLock<Arc<DecodedListDict>>: Send,

§

impl Sync for ListDictReader
where OnceLock<Arc<DecodedListDict>>: Sync,

§

impl Unpin for ListDictReader
where Align4<u32>: Unpin, Arc<DecodedListDict>: Unpin,

§

impl UnsafeUnpin for ListDictReader
where Align4<u32>: UnsafeUnpin, *const ArcInner<DecodedListDict> is !null: UnsafeUnpin, PhantomData<ArcInner<DecodedListDict>>: UnsafeUnpin, PhantomData<Arc<DecodedListDict>>: UnsafeUnpin,

§

impl UnwindSafe for ListDictReader
where OnceLock<Arc<DecodedListDict>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.