pub enum RefPointee {
Void,
Int,
SignedInt,
Float,
Bool,
String,
Iter,
Struct,
}Expand description
The kind of value a reference points to.
References are single-level (there is no &&T), so a pointee is always a
non-reference type. A Struct pointee carries no identity — which struct it
is gets checked at runtime.
Variants§
Void
A reference to nothing (uncommon, but representable).
Int
A reference to an unsigned integer.
SignedInt
A reference to a signed integer.
Float
A reference to a float.
Bool
A reference to a boolean.
String
A reference to a string.
Iter
A reference to an iterator handle.
Struct
A reference to a struct (identity checked at runtime).
Implementations§
Trait Implementations§
Source§impl Clone for RefPointee
impl Clone for RefPointee
Source§fn clone(&self) -> RefPointee
fn clone(&self) -> RefPointee
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefPointee
Source§impl Debug for RefPointee
impl Debug for RefPointee
Source§impl Display for RefPointee
impl Display for RefPointee
impl Eq for RefPointee
Source§impl Hash for RefPointee
impl Hash for RefPointee
Source§impl PartialEq for RefPointee
impl PartialEq for RefPointee
impl StructuralPartialEq for RefPointee
Auto Trait Implementations§
impl Freeze for RefPointee
impl RefUnwindSafe for RefPointee
impl Send for RefPointee
impl Sync for RefPointee
impl Unpin for RefPointee
impl UnsafeUnpin for RefPointee
impl UnwindSafe for RefPointee
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.