pub enum Adjust {
NeverToAny,
Deref(Option<OverloadedDeref>),
Borrow(AutoBorrow),
Pointer(PointerCast),
}
Variants§
NeverToAny
Go from ! to any type.
Deref(Option<OverloadedDeref>)
Dereference once, producing a place.
Borrow(AutoBorrow)
Take the address and produce either a &
or *
pointer.
Pointer(PointerCast)
Trait Implementations§
source§impl PartialEq<Adjust> for Adjust
impl PartialEq<Adjust> for Adjust
impl Copy for Adjust
impl Eq for Adjust
impl StructuralEq for Adjust
impl StructuralPartialEq for Adjust
Auto Trait Implementations§
impl RefUnwindSafe for Adjust
impl Send for Adjust
impl Sync for Adjust
impl Unpin for Adjust
impl UnwindSafe for Adjust
Blanket Implementations§
§impl<T> Cast for T
impl<T> Cast for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.