pub struct Func<'a> {
pub span: Span,
pub name: Option<Id<'a>>,
pub export: Option<&'a str>,
pub ty: TypeUse<'a>,
pub kind: FuncKind<'a>,
}Expand description
A definition of an adapter function
Fields§
§span: SpanWhere this function was defined
name: Option<Id<'a>>An optional name used to refer to this function
export: Option<&'a str>An optional name that this function is being exported under
ty: TypeUse<'a>The type that this function has
kind: FuncKind<'a>How this function is defined
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Func<'a>
impl<'a> RefUnwindSafe for Func<'a>
impl<'a> Send for Func<'a>
impl<'a> Sync for Func<'a>
impl<'a> Unpin for Func<'a>
impl<'a> UnwindSafe for Func<'a>
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