Struct core_extensions::strings::KeyStr [−][src]
pub struct KeyStr<'a, T> {
pub str: &'a str,
pub key: T,
}
slices
only.Expand description
A pair of (string slice, key) returned by the RSplitWhile/ SplitWhile iterators.
Fields
str: &'a str
str_slice
is a string slice for which all characters were mapped to key
by a closure.
key: T
The value that all the chars in the string slice were mapped to.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for KeyStr<'a, T> where
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for KeyStr<'a, T> where
T: UnwindSafe,
Blanket Implementations
phantom
only.Gets a PhantomData<fn() -> Self>
, a covariant PhantomData
.
phantom
only.Gets a PhantomData<fn(Self)>
, a contravariant PhantomData
.
phantom
only.Gets a PhantomData<fn(Self) -> Self>
, an invariant PhantomData
.
phantom
only.Constructs a PhantomData<fn() -> T>
, a covariant PhantomData
. Read more
phantom
only.Gets a PhantomData<fn(Self)>
, a contravariant PhantomData
. Read more
phantom
only.Gets a PhantomData<fn(Self) -> Self>
, an invariant PhantomData
. Read more
Mutably borrows from an owned value. Read more
callable
only.For calling CallRef::ref_call_
,
with the ability to specify the types of the arguments.. Read more
callable
only.For calling CallMut::mut_call_
,
with the ability to specify the types of the arguments.. Read more