pub struct DeclareFnDecl {
pub span: Span,
pub is_pub: bool,
pub name: Var,
pub params: Vec<(Var, TypeExpr)>,
pub ret: TypeExpr,
pub constraints: Vec<TypeConstraint>,
}Fields§
§span: Span§is_pub: bool§name: Var§params: Vec<(Var, TypeExpr)>§ret: TypeExpr§constraints: Vec<TypeConstraint>Trait Implementations§
Source§impl Clone for DeclareFnDecl
impl Clone for DeclareFnDecl
Source§fn clone(&self) -> DeclareFnDecl
fn clone(&self) -> DeclareFnDecl
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 DeclareFnDecl
impl Debug for DeclareFnDecl
Source§impl<'de> Deserialize<'de> for DeclareFnDecl
impl<'de> Deserialize<'de> for DeclareFnDecl
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 DeclareFnDecl
impl PartialEq for DeclareFnDecl
Source§impl Serialize for DeclareFnDecl
impl Serialize for DeclareFnDecl
impl StructuralPartialEq for DeclareFnDecl
Auto Trait Implementations§
impl Freeze for DeclareFnDecl
impl RefUnwindSafe for DeclareFnDecl
impl Send for DeclareFnDecl
impl Sync for DeclareFnDecl
impl Unpin for DeclareFnDecl
impl UnsafeUnpin for DeclareFnDecl
impl UnwindSafe for DeclareFnDecl
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