pub struct FunctionDecl {
pub name: String,
pub ty: Option<Type>,
pub equations: Vec<Equation>,
pub pos: Pos,
pub span: Span,
pub sig_span: Option<Span>,
}Fields§
§name: String§ty: Option<Type>§equations: Vec<Equation>§pos: Pos§span: SpanSpan of the function’s first appearance (signature or first equation).
Convenience anchor; a multi-equation function’s precise ranges are the
per-Equation spans, since equations need not be contiguous in source.
sig_span: Option<Span>Span of the standalone type signature name : Type, if one was seen.
Trait Implementations§
Source§impl Clone for FunctionDecl
impl Clone for FunctionDecl
Source§fn clone(&self) -> FunctionDecl
fn clone(&self) -> FunctionDecl
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 moreAuto Trait Implementations§
impl Freeze for FunctionDecl
impl RefUnwindSafe for FunctionDecl
impl Send for FunctionDecl
impl Sync for FunctionDecl
impl Unpin for FunctionDecl
impl UnsafeUnpin for FunctionDecl
impl UnwindSafe for FunctionDecl
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