pub enum SplitAddr<'a> {
Term(&'a str),
Prefix(&'a str, &'a str),
}Expand description
Enum representing possible parse variants for an address that contain some number of => separators.
Variants§
Term(&'a str)
Resultant type from a parse of (addr).
Prefix(&'a str, &'a str)
Resultant type from a parse of first => (addr).
Implementations§
Trait Implementations§
impl<'a> Eq for SplitAddr<'a>
impl<'a> StructuralPartialEq for SplitAddr<'a>
Auto Trait Implementations§
impl<'a> Freeze for SplitAddr<'a>
impl<'a> RefUnwindSafe for SplitAddr<'a>
impl<'a> Send for SplitAddr<'a>
impl<'a> Sync for SplitAddr<'a>
impl<'a> Unpin for SplitAddr<'a>
impl<'a> UnwindSafe for SplitAddr<'a>
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.