pub(crate) struct BuiltinArgument {
pub(crate) name: Ident,
pub(crate) ty: Box<Type>,
pub(crate) strict: bool,
pub(crate) catch: bool,
pub(crate) span: Span,
}Expand description
Description of a single argument passed to a builtin
Fields§
§name: IdentThe name of the argument, to be used in docstrings and error messages
ty: Box<Type>Type of the argument.
strict: boolWhether the argument should be forced before the underlying builtin function is called.
catch: boolPropagate catchable values as values to the function, rather than short-circuit returning them if encountered
span: SpanSpan at which the argument was defined.
Auto Trait Implementations§
impl Freeze for BuiltinArgument
impl RefUnwindSafe for BuiltinArgument
impl !Send for BuiltinArgument
impl !Sync for BuiltinArgument
impl Unpin for BuiltinArgument
impl UnwindSafe for BuiltinArgument
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