pub struct TypedMethodSig {
pub name: String,
pub params: Vec<TypedParam>,
pub ret_ty: QalaType,
pub effect: EffectSet,
pub span: Span,
}Expand description
one typed method signature in an interface: like a TypedFnDecl without a
body and without a type_name. the first parameter is typically self.
Fields§
§name: Stringthe method name.
params: Vec<TypedParam>the typed parameter list; the first is typically self.
ret_ty: QalaTypethe resolved return type. void is the resolved-form of an omitted
-> T.
effect: EffectSetthe effect set required of any conforming implementation. (an interface
method’s is X annotation, or the inferred set when conformance is
being checked.)
span: Spanthe signature’s source span.
Trait Implementations§
Source§impl Clone for TypedMethodSig
impl Clone for TypedMethodSig
Source§fn clone(&self) -> TypedMethodSig
fn clone(&self) -> TypedMethodSig
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 TypedMethodSig
impl Debug for TypedMethodSig
Source§impl PartialEq for TypedMethodSig
impl PartialEq for TypedMethodSig
Source§fn eq(&self, other: &TypedMethodSig) -> bool
fn eq(&self, other: &TypedMethodSig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedMethodSig
Auto Trait Implementations§
impl Freeze for TypedMethodSig
impl RefUnwindSafe for TypedMethodSig
impl Send for TypedMethodSig
impl Sync for TypedMethodSig
impl Unpin for TypedMethodSig
impl UnsafeUnpin for TypedMethodSig
impl UnwindSafe for TypedMethodSig
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