pub struct Signature {
pub name: Spanned<Ident>,
pub type_annotation: Spanned<TypeAnnotation>,
pub trailing_comment: Option<Spanned<Comment>>,
}Expand description
A type signature: name : type.
trailing_comment captures a short inline comment that appears on the
same line as the signature’s final token, e.g.
completeBlocks :
State
-> Parser State --Result Parser.Problem (List Block)Fields§
§name: Spanned<Ident>§type_annotation: Spanned<TypeAnnotation>§trailing_comment: Option<Spanned<Comment>>Trait Implementations§
impl Eq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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