pub struct LTy { /* private fields */ }
Implementations§
Trait Implementations§
impl Eq for LTy
impl StructuralEq for LTy
impl StructuralPartialEq for LTy
Auto Trait Implementations§
impl RefUnwindSafe for LTy
impl Send for LTy
impl Sync for LTy
impl Unpin for LTy
impl UnwindSafe for LTy
Blanket Implementations§
source§impl<X> AnyDebug for Xwhere
X: Any + Debug + Send + Sync,
impl<X> AnyDebug for Xwhere X: Any + Debug + Send + Sync,
source§fn get_ty(&self) -> Ty
fn get_ty(&self) -> Ty
You’re inevitably wanting to call this with something like
Box<dyn AnyDebug>
, but instead
of returning the ty of the contents, it uselessly returns Ty::of::<Box<dyn AnyDebug>>()
.
How do you deal with this? Instead of this.get_ty()
, call (*this).get_ty()
.fn type_name(&self) -> &'static str
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