pub struct Four;Expand description
Chars that represents the respective utf-8 character.
Trait Implementations§
Source§impl Consumable for Four
impl Consumable for Four
Source§fn consume_from(source: &str) -> Result<(Self, &str), ConsumeError>
fn consume_from(source: &str) -> Result<(Self, &str), ConsumeError>
Attempt consume from
source to form an item of Self. When consuming is
succesful, it returns the item along with the unconsumed part of the source.
When consuming is unsuccesful it returns the corresponding error. Read moreSource§fn consume_how_many_from(
source: &str,
) -> Result<(Self, &str, usize), ConsumeError>
fn consume_how_many_from( source: &str, ) -> Result<(Self, &str, usize), ConsumeError>
Attempt consume from
source to form an item of Self. When consuming is
succesful, it returns the item along with the unconsumed part of the source
and the amount of consumed characters.
When consuming is unsuccesful it returns the corresponding error. Read moreSource§fn consume_iter<'a>(source: &'a str) -> ConsumeIter<'a, Self> ⓘ
fn consume_iter<'a>(source: &'a str) -> ConsumeIter<'a, Self> ⓘ
impl StructuralPartialEq for Four
Auto Trait Implementations§
impl Freeze for Four
impl RefUnwindSafe for Four
impl Send for Four
impl Sync for Four
impl Unpin for Four
impl UnwindSafe for Four
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> 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