pub struct TypeIdExt { /* private fields */ }
Expand description
Represents an extended TypeId
with type name.
This would be useful for enriching debug messages, but the type name is only
included when check
feature is enabled.
Implementations§
Source§impl TypeIdExt
impl TypeIdExt
Sourcepub const fn new(ty: TypeId) -> Self
pub const fn new(ty: TypeId) -> Self
Creates a new TypeIdExt
from the given TypeId
.
If check
feature is enabled, type name is set to blank string. To set
a proper name, call TypeIdExt::with
.
Trait Implementations§
Source§impl Ord for TypeIdExt
impl Ord for TypeIdExt
Source§impl PartialOrd<TypeId> for TypeIdExt
impl PartialOrd<TypeId> for TypeIdExt
Source§impl PartialOrd for TypeIdExt
impl PartialOrd for TypeIdExt
impl Copy for TypeIdExt
impl Eq for TypeIdExt
Auto Trait Implementations§
impl Freeze for TypeIdExt
impl RefUnwindSafe for TypeIdExt
impl Send for TypeIdExt
impl Sync for TypeIdExt
impl Unpin for TypeIdExt
impl UnwindSafe for TypeIdExt
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more