pub struct TypedInterfaceDecl {
pub name: String,
pub methods: Vec<TypedMethodSig>,
pub span: Span,
}Expand description
a typed interface declaration. mirror of ast::InterfaceDecl with method
signatures’ parameter and return types resolved and effect sets present.
Fields§
§name: Stringthe interface’s name.
methods: Vec<TypedMethodSig>the typed method signatures the interface requires.
span: Spaninterface keyword to closing }.
Trait Implementations§
Source§impl Clone for TypedInterfaceDecl
impl Clone for TypedInterfaceDecl
Source§fn clone(&self) -> TypedInterfaceDecl
fn clone(&self) -> TypedInterfaceDecl
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 moreSource§impl Debug for TypedInterfaceDecl
impl Debug for TypedInterfaceDecl
Source§impl PartialEq for TypedInterfaceDecl
impl PartialEq for TypedInterfaceDecl
Source§fn eq(&self, other: &TypedInterfaceDecl) -> bool
fn eq(&self, other: &TypedInterfaceDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedInterfaceDecl
Auto Trait Implementations§
impl Freeze for TypedInterfaceDecl
impl RefUnwindSafe for TypedInterfaceDecl
impl Send for TypedInterfaceDecl
impl Sync for TypedInterfaceDecl
impl Unpin for TypedInterfaceDecl
impl UnsafeUnpin for TypedInterfaceDecl
impl UnwindSafe for TypedInterfaceDecl
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