pub struct Beleriand { /* private fields */ }
Expand description
The Mode of Beleriand, developed in the First Age for writing Sindarin.
Implementations§
Trait Implementations§
source§impl TengwarMode for Beleriand
impl TengwarMode for Beleriand
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 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 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 Beleriand
Auto Trait Implementations§
impl RefUnwindSafe for Beleriand
impl Send for Beleriand
impl Sync for Beleriand
impl Unpin for Beleriand
impl UnwindSafe for Beleriand
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