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,
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