pub struct SchemaMethodParam {
pub name: String,
pub name_range: TokenRange,
pub type_node: TypeNode,
}Expand description
One typed parameter of a schema method declared inside with { ... }.
Form: <ident>: <TypeNode>. The self receiver is implicit and is not
represented here; analyzer-side lowering injects it as a leading
parameter of type Self.
Fields§
§name: String§name_range: TokenRange§type_node: TypeNodeTrait Implementations§
Source§impl Clone for SchemaMethodParam
impl Clone for SchemaMethodParam
Source§fn clone(&self) -> SchemaMethodParam
fn clone(&self) -> SchemaMethodParam
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 moreSource§impl Debug for SchemaMethodParam
impl Debug for SchemaMethodParam
Source§impl PartialEq for SchemaMethodParam
impl PartialEq for SchemaMethodParam
Source§fn eq(&self, other: &SchemaMethodParam) -> bool
fn eq(&self, other: &SchemaMethodParam) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaMethodParam
Auto Trait Implementations§
impl Freeze for SchemaMethodParam
impl RefUnwindSafe for SchemaMethodParam
impl Send for SchemaMethodParam
impl Sync for SchemaMethodParam
impl Unpin for SchemaMethodParam
impl UnsafeUnpin for SchemaMethodParam
impl UnwindSafe for SchemaMethodParam
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