Struct tc_value::StringCollator [−][src]
pub struct StringCollator { /* fields omitted */ }
Trait Implementations
Define the relative ordering of Self::Value
.
Given a collection of slices, return the start and end indices which match the given range.
Given a collection of slices, return the leftmost insert point matching the given key.
Given a collection of slices, return the rightmost insert point matching the given key.
Returns the ordering of the given key relative to the given range.
Returns the relative ordering of the left
slice with respect to right
.
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StringCollator
impl Send for StringCollator
impl Sync for StringCollator
impl Unpin for StringCollator
impl UnwindSafe for StringCollator
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns true
if self
can be cast into the target type T
.
Test if value
can be cast into Self
.
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
Test if self
can be cast into T
.
Returns Some(T)
if self
can be cast into T
, otherwise None
.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.