pub struct Lower<P>(/* private fields */);Expand description
A case adapter for a character profile that accepts uncased and lowercase characters.
Trait Implementations§
Source§impl<P: CharProfile> CasedProfile for Lower<P>
impl<P: CharProfile> CasedProfile for Lower<P>
Source§fn is_chunk<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
fn is_chunk<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
Given a UTF-8 string, check whether or not it’s a valid chunk. Read more
Source§fn is_fragment<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
fn is_fragment<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
Given a UTF-8 string, check whether or not it’s a valid fragment. Read more
Source§fn is_ident<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
fn is_ident<D: Delimiter>(s: &str) -> Result<(), SyntaxError>
Given a UTF-8 string, check whether or not it’s a valid identifier. Read more
Source§fn is_ident_fragment<D: Delimiter>(fragment: &str) -> Result<(), SyntaxError>
fn is_ident_fragment<D: Delimiter>(fragment: &str) -> Result<(), SyntaxError>
Given a UTF-8 string that is known to pass
is_fragment, check
whether or not it’s a valid identifier. Read moreSource§impl<P: CharProfile> Profile for Lower<P>
impl<P: CharProfile> Profile for Lower<P>
Source§const APPEND_CLOSED: AppendClosed = P::APPEND_CLOSED
const APPEND_CLOSED: AppendClosed = P::APPEND_CLOSED
Whether or not a fragment containing characters in this profile are
append-closed. Read more
Source§type CharProfile = P
type CharProfile = P
The underlying character profile that this profile is based on. Read more
Source§type Segmentation = <P as Profile>::Segmentation
type Segmentation = <P as Profile>::Segmentation
The segmentation strategy that this profile uses. Read more
Source§fn is_chunk_char(c: char) -> bool
fn is_chunk_char(c: char) -> bool
Whether or not the provided character can appear at any point in a
chunk. Read more
Source§fn is_chunk_continue(c: char) -> bool
fn is_chunk_continue(c: char) -> bool
Whether or not the provided character is valid at any position after the
first character of a chunk (a run of non-delimiter characters).
impl<Superset, Subset> SubsetOf<Camel<Superset>> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ Camel<Superset>
impl<Superset, Subset> SubsetOf<Lower<Superset>> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ Lower<Superset>
impl<Superset, Subset> SubsetOf<LowerCamel<Superset>> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ LowerCamel<Superset>
impl<Superset, Subset> SubsetOf<Mixed<Superset>> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ Mixed<Superset>
impl<Superset, Subset> SubsetOf<Superset> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ Superset
impl<Superset, Subset> SubsetOf<Uniform<Superset>> for Lower<Subset>
Proof: If Subset ⊆ Superset, then Lower<Subset> ⊆ Uniform<Superset>
Auto Trait Implementations§
impl<P> Freeze for Lower<P>where
PhantomData<P>: Freeze,
impl<P> RefUnwindSafe for Lower<P>where
PhantomData<P>: RefUnwindSafe,
impl<P> Send for Lower<P>where
PhantomData<P>: Send,
impl<P> Sync for Lower<P>where
PhantomData<P>: Sync,
impl<P> Unpin for Lower<P>where
PhantomData<P>: Unpin,
impl<P> UnsafeUnpin for Lower<P>where
PhantomData<P>: UnsafeUnpin,
impl<P> UnwindSafe for Lower<P>where
PhantomData<P>: 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