pub enum Word<'a> {
Entry(&'a str),
Number(u8),
OutOfRange,
}Expand description
What an index reads as, with the table a reader holds.
Variants§
Entry(&'a str)
The table’s entry.
Number(u8)
An index past the table the reader holds, a later revision’s, or any index with no table in hand: shown as its number.
OutOfRange
out_of_range: the writer’s table did not hold the word. A reader
shows that, never an entry.
Trait Implementations§
impl<'a> Copy for Word<'a>
impl<'a> Eq for Word<'a>
impl<'a> StructuralPartialEq for Word<'a>
Auto Trait Implementations§
impl<'a> Forget for Word<'a>
impl<'a> Freeze for Word<'a>
impl<'a> Move for Word<'a>
impl<'a> RefUnwindSafe for Word<'a>
impl<'a> Send for Word<'a>
impl<'a> Sync for Word<'a>
impl<'a> Unpin for Word<'a>
impl<'a> UnsafeUnpin for Word<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for Word<'a>where
&'a str: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more