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: Ident
The name of the argument, to be used in docstrings and error messages
ty: Box<Type>
Type of the argument.
strict: bool
Whether the argument should be forced before the underlying builtin function is called.
catch: bool
Propagate catchable values as values to the function, rather than short-circuit returning them if encountered
span: Span
Span 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