pub struct InstanceDecl {
pub span: Span,
pub is_pub: bool,
pub class: Symbol,
pub head: TypeExpr,
pub context: Vec<TypeConstraint>,
pub methods: Vec<InstanceMethodImpl>,
}Fields§
§span: Span§is_pub: bool§class: Symbol§head: TypeExpr§context: Vec<TypeConstraint>§methods: Vec<InstanceMethodImpl>Trait Implementations§
Source§impl Clone for InstanceDecl
impl Clone for InstanceDecl
Source§fn clone(&self) -> InstanceDecl
fn clone(&self) -> InstanceDecl
Returns a duplicate 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 InstanceDecl
impl Debug for InstanceDecl
Source§impl<'de> Deserialize<'de> for InstanceDecl
impl<'de> Deserialize<'de> for InstanceDecl
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 PartialEq for InstanceDecl
impl PartialEq for InstanceDecl
Source§impl Serialize for InstanceDecl
impl Serialize for InstanceDecl
impl StructuralPartialEq for InstanceDecl
Auto Trait Implementations§
impl Freeze for InstanceDecl
impl RefUnwindSafe for InstanceDecl
impl Send for InstanceDecl
impl Sync for InstanceDecl
impl Unpin for InstanceDecl
impl UnsafeUnpin for InstanceDecl
impl UnwindSafe for InstanceDecl
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