pub struct TyTraitDeclaration {
pub name: Ident,
pub type_parameters: Vec<TypeParameter>,
pub interface_surface: Vec<DeclarationId>,
pub methods: Vec<FunctionDeclaration>,
pub supertraits: Vec<Supertrait>,
pub visibility: Visibility,
pub attributes: AttributesMap,
pub span: Span,
}
Fields
name: Ident
type_parameters: Vec<TypeParameter>
interface_surface: Vec<DeclarationId>
methods: Vec<FunctionDeclaration>
supertraits: Vec<Supertrait>
visibility: Visibility
attributes: AttributesMap
span: Span
Trait Implementations
sourceimpl Clone for TyTraitDeclaration
impl Clone for TyTraitDeclaration
sourcefn clone(&self) -> TyTraitDeclaration
fn clone(&self) -> TyTraitDeclaration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TyTraitDeclaration
impl Debug for TyTraitDeclaration
sourceimpl PartialEq<TyTraitDeclaration> for TyTraitDeclaration
impl PartialEq<TyTraitDeclaration> for TyTraitDeclaration
impl Eq for TyTraitDeclaration
Auto Trait Implementations
impl RefUnwindSafe for TyTraitDeclaration
impl Send for TyTraitDeclaration
impl Sync for TyTraitDeclaration
impl Unpin for TyTraitDeclaration
impl UnwindSafe for TyTraitDeclaration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.