pub struct CSNameVec<C: Character, A: Clone>(/* private fields */);Expand description
A CSNameMap that uses a Vec to store the values for InternedCSName.
Since the InternedCSNames are consecutive, we can use a Vec instead of a HMap.
Trait Implementations§
Source§impl<C: Character, A: Clone> CSNameMap<C, (NonZero<u32>, PhantomData<C>), A> for CSNameVec<C, A>
impl<C: Character, A: Clone> CSNameMap<C, (NonZero<u32>, PhantomData<C>), A> for CSNameVec<C, A>
Source§fn get(&self, cs: &InternedCSName<C>) -> Option<&A>
fn get(&self, cs: &InternedCSName<C>) -> Option<&A>
Returns the value associated with the given control sequence name, if any.
Source§fn insert(&mut self, cs: InternedCSName<C>, a: A) -> Option<A>
fn insert(&mut self, cs: InternedCSName<C>, a: A) -> Option<A>
Inserts a new value for the given control sequence name, returning the old value if any.
Source§fn remove(&mut self, cs: &InternedCSName<C>) -> Option<A>
fn remove(&mut self, cs: &InternedCSName<C>) -> Option<A>
Removes the value associated with the given control sequence name, returning it if any.
fn into_iter(self) -> impl Iterator<Item = (InternedCSName<C>, A)>
Auto Trait Implementations§
impl<C, A> Freeze for CSNameVec<C, A>
impl<C, A> RefUnwindSafe for CSNameVec<C, A>where
C: RefUnwindSafe,
A: RefUnwindSafe,
impl<C, A> Send for CSNameVec<C, A>
impl<C, A> Sync for CSNameVec<C, A>
impl<C, A> Unpin for CSNameVec<C, A>
impl<C, A> UnsafeUnpin for CSNameVec<C, A>
impl<C, A> UnwindSafe for CSNameVec<C, A>where
C: UnwindSafe,
A: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().