pub struct ParamSchema {
pub name: &'static str,
pub ty: BuiltinType,
}Expand description
One parameter of a builtin’s signature.
A host operation’s parameters are positions and nothing else; a builtin’s
are labels a caller may write and a diagnostic does write, which is why
this carries a name where
OperationSchema::params carries a bare
type.
Fields§
§name: &'static strThe label, such as index or fallback.
ty: BuiltinTypeThe parameter’s type.
Trait Implementations§
Source§impl Clone for ParamSchema
impl Clone for ParamSchema
Source§fn clone(&self) -> ParamSchema
fn clone(&self) -> ParamSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamSchema
Source§impl Debug for ParamSchema
impl Debug for ParamSchema
impl Eq for ParamSchema
Source§impl PartialEq for ParamSchema
impl PartialEq for ParamSchema
Source§fn eq(&self, other: &ParamSchema) -> bool
fn eq(&self, other: &ParamSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParamSchema
Auto Trait Implementations§
impl Freeze for ParamSchema
impl RefUnwindSafe for ParamSchema
impl Send for ParamSchema
impl Sync for ParamSchema
impl Unpin for ParamSchema
impl UnsafeUnpin for ParamSchema
impl UnwindSafe for ParamSchema
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