Struct konst::polymorphism::IsAConstCmpMarker [−][src]
cmp
only.Expand description
Hack used to automatically wrap standard library types inside CmpWrapper
,
while leaving user defined types unwrapped.
This can be constructed with he NEW
associated constant
Type parameters
K
is <R as ConstCmpMarker>::Kind
The kind of type that T
is,
a slice,
other std types,
non-std types.
T
is <R as ConstCmpMarker>::This
,
the R
type after removing all layers of references.
R
: Is the type that implements ConstCmpMarker
Implementations
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Copies the value from reference
, and wraps it in a CmpWrapper
Infers the type parameters by taking a reference to R
.
The K
and T
type parameters are determined by R
in
the NEW
associated constant.
Removes layers of references by coercing the argument.
Coerces an array to a slice, then wraps the slice in a CmpWrapper
Wraps reference
in a CmpWrapper
.
pub const fn coerce(
self,
reference: &Option<NonZeroUsize>
) -> CmpWrapper<Option<NonZeroUsize>>
pub const fn coerce(
self,
reference: &Option<NonZeroIsize>
) -> CmpWrapper<Option<NonZeroIsize>>
pub const fn coerce(
self,
reference: &Option<&'a [&'b str]>
) -> CmpWrapper<Option<&'a [&'b str]>>
pub const fn coerce(
self,
reference: &Option<&'a [&'b [u8]]>
) -> CmpWrapper<Option<&'a [&'b [u8]]>>
Trait Implementations
Auto Trait Implementations
impl<K, T: ?Sized, R: ?Sized> RefUnwindSafe for IsAConstCmpMarker<K, T, R>
impl<K, T: ?Sized, R: ?Sized> Send for IsAConstCmpMarker<K, T, R>
impl<K, T: ?Sized, R: ?Sized> Sync for IsAConstCmpMarker<K, T, R>
impl<K, T: ?Sized, R: ?Sized> Unpin for IsAConstCmpMarker<K, T, R>
impl<K, T: ?Sized, R: ?Sized> UnwindSafe for IsAConstCmpMarker<K, T, R>
Blanket Implementations
Mutably borrows from an owned value. Read more