pub struct TypedFunction {
pub name: Ident,
pub mangled_name: MangledName,
pub generics: Vec<String>,
pub params: Vec<TypedParam>,
pub return_type: Type,
pub type_predicate: Option<TypePredicate>,
pub body: StmtId,
pub doc: Option<DocComment>,
pub span: Span,
}Fields§
§name: Ident§mangled_name: MangledName§generics: Vec<String>Body is type-checked under Type::GenericParam instantiations then erased
to Type::TypeVar for the external view.
params: Vec<TypedParam>§return_type: Type§type_predicate: Option<TypePredicate>Type guard predicate. When set, return_type is always Type::Boolean.
body: StmtId§doc: Option<DocComment>§span: SpanTrait Implementations§
Source§impl Clone for TypedFunction
impl Clone for TypedFunction
Source§impl Debug for TypedFunction
impl Debug for TypedFunction
Source§impl PartialEq for TypedFunction
impl PartialEq for TypedFunction
impl StructuralPartialEq for TypedFunction
Auto Trait Implementations§
impl Freeze for TypedFunction
impl RefUnwindSafe for TypedFunction
impl Send for TypedFunction
impl Sync for TypedFunction
impl Unpin for TypedFunction
impl UnsafeUnpin for TypedFunction
impl UnwindSafe for TypedFunction
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