pub struct Function {
pub name: String,
pub kind: Kind,
pub signatures: Vec<Signature>,
pub description: String,
pub examples: Vec<Example>,
pub section: String,
}Expand description
A function an expression can call.
Fields§
§name: StringHow it is called: md.currency, size, contains (a method, s.contains(…)), map (a macro).
kind: KindWhere it comes from.
signatures: Vec<Signature>Each way to call it.
description: StringWhat it gives, in one line.
examples: Vec<Example>Calls of it, and what each gives at a render at 2026-10-21T10:00:00Z, in UTC, in English (md.lang en).
section: StringThe spec’s section that defines it: 8.2.
Trait Implementations§
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Forget for Function
impl Freeze for Functionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Signature>: Freeze,
PhantomData<Example>: Freeze,
impl Move for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Functionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Signature>: UnsafeUnpin,
PhantomData<Example>: UnsafeUnpin,
impl UnwindSafe for Function
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more