pub struct Gondor { /* private fields */ }
Expand description
The Mode of Gondor, used in the Third Age for writing Sindarin.
Implementations§
Trait Implementations§
source§impl TengwarMode for Gondor
impl TengwarMode for Gondor
source§fn finalize(&self, token: &mut Token, next: Option<&Token>)
fn finalize(&self, token: &mut Token, next: Option<&Token>)
Perform any last-minute modifications to a
Token
that may be needed
upon finding out what the following Token
will be. By default,
this method is a no-op.source§fn finish_current(&mut self) -> Option<Token>
fn finish_current(&mut self) -> Option<Token>
source§fn process(&mut self, chunk: &[char]) -> ParseAction
fn process(&mut self, chunk: &[char]) -> ParseAction
Process a slice of
char
s, and return a ParseAction
indicating
the new state of the conversion in progress. Read moresource§const MAX_CHUNK: usize = 3usize
const MAX_CHUNK: usize = 3usize
This is the maximum size for a “chunk” of
char
s passed to
Self::process
. It is also the maximum number of passes that will
be attempted before skipping a char
and moving on.source§fn transcribe<T: FromIterator<Token>>(input: impl AsRef<str>) -> Twhere
Self: Default,
fn transcribe<T: FromIterator<Token>>(input: impl AsRef<str>) -> Twhere Self: Default,
Set up a
Transcriber
over the characters of an input string, and
immediately collect it into the target type.source§fn default_transcriber(input: impl AsRef<str>) -> Transcriber<Self>where
Self: Default,
fn default_transcriber(input: impl AsRef<str>) -> Transcriber<Self>where Self: Default,
Set up a
Transcriber
over the characters of an input string, using
the default initial state of this mode.source§fn into_transcriber(self, input: impl AsRef<str>) -> Transcriber<Self>where
Self: Sized,
fn into_transcriber(self, input: impl AsRef<str>) -> Transcriber<Self>where Self: Sized,
Set up a
Transcriber
over the characters of an input string.source§fn find_index(&mut self, slice: &[char]) -> Option<(char, usize)>
fn find_index(&mut self, slice: &[char]) -> Option<(char, usize)>
Try to parse a slice of characters into an “index” of a sequence. This
special case of a numeral is intended for use in enumerated lists.
impl Copy for Gondor
Auto Trait Implementations§
impl RefUnwindSafe for Gondor
impl Send for Gondor
impl Sync for Gondor
impl Unpin for Gondor
impl UnwindSafe for Gondor
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