pub enum BuiltinDeriveImplTrait {
Copy,
Clone,
Default,
Debug,
Hash,
Ord,
PartialOrd,
Eq,
PartialEq,
CoerceUnsized,
DispatchFromDyn,
Reborrow,
}Variants§
Implementations§
Source§impl BuiltinDeriveImplTrait
impl BuiltinDeriveImplTrait
pub fn name(self) -> Symbol
pub fn get_id(self, lang_items: &LangItems) -> Option<TraitId>
pub fn get_method(self, method_name: &Symbol) -> Option<BuiltinDeriveImplMethod>
pub fn all_methods(self) -> &'static [BuiltinDeriveImplMethod]
Source§impl BuiltinDeriveImplTrait
impl BuiltinDeriveImplTrait
pub fn derive_macro(self, lang_items: &LangItems) -> Option<MacroId>
Trait Implementations§
Source§impl Clone for BuiltinDeriveImplTrait
impl Clone for BuiltinDeriveImplTrait
Source§fn clone(&self) -> BuiltinDeriveImplTrait
fn clone(&self) -> BuiltinDeriveImplTrait
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 BuiltinDeriveImplTrait
Source§impl Debug for BuiltinDeriveImplTrait
impl Debug for BuiltinDeriveImplTrait
impl Eq for BuiltinDeriveImplTrait
Source§impl Hash for BuiltinDeriveImplTrait
impl Hash for BuiltinDeriveImplTrait
Source§impl PartialEq for BuiltinDeriveImplTrait
impl PartialEq for BuiltinDeriveImplTrait
impl StructuralPartialEq for BuiltinDeriveImplTrait
Auto Trait Implementations§
impl Freeze for BuiltinDeriveImplTrait
impl RefUnwindSafe for BuiltinDeriveImplTrait
impl Send for BuiltinDeriveImplTrait
impl Sync for BuiltinDeriveImplTrait
impl Unpin for BuiltinDeriveImplTrait
impl UnsafeUnpin for BuiltinDeriveImplTrait
impl UnwindSafe for BuiltinDeriveImplTrait
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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