pub struct TraitAlias {
pub generics: Generics,
pub params: Vec<GenericBound>,
}
Expand description
A trait alias declaration, e.g. trait Int = Add + Sub + Mul + Div;
Fields§
§generics: Generics
Information about the type parameters and where
clauses of the alias.
params: Vec<GenericBound>
The bounds that are associated with the alias.
Trait Implementations§
source§impl Clone for TraitAlias
impl Clone for TraitAlias
source§fn clone(&self) -> TraitAlias
fn clone(&self) -> TraitAlias
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TraitAlias
impl Debug for TraitAlias
source§impl<'de> Deserialize<'de> for TraitAlias
impl<'de> Deserialize<'de> for TraitAlias
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for TraitAlias
impl Hash for TraitAlias
source§impl PartialEq for TraitAlias
impl PartialEq for TraitAlias
source§impl Serialize for TraitAlias
impl Serialize for TraitAlias
impl Eq for TraitAlias
impl StructuralPartialEq for TraitAlias
Auto Trait Implementations§
impl Freeze for TraitAlias
impl RefUnwindSafe for TraitAlias
impl Send for TraitAlias
impl Sync for TraitAlias
impl Unpin for TraitAlias
impl UnwindSafe for TraitAlias
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes