pub struct ParameterDescriptor { /* private fields */ }Expand description
Stable declaration metadata for one parameter.
Implementations§
Source§impl ParameterDescriptor
impl ParameterDescriptor
Sourcepub fn new(
name: Symbol,
kind: ParameterKind,
call_mode: CallMode,
shape: Option<ShapeId>,
) -> Self
pub fn new( name: Symbol, kind: ParameterKind, call_mode: CallMode, shape: Option<ShapeId>, ) -> Self
Declares a parameter with an optional existing Shape identifier.
Sourcepub const fn kind(&self) -> ParameterKind
pub const fn kind(&self) -> ParameterKind
Returns the declaration role.
Trait Implementations§
Source§impl Clone for ParameterDescriptor
impl Clone for ParameterDescriptor
Source§fn clone(&self) -> ParameterDescriptor
fn clone(&self) -> ParameterDescriptor
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 ParameterDescriptor
impl Debug for ParameterDescriptor
impl Eq for ParameterDescriptor
Source§impl Hash for ParameterDescriptor
impl Hash for ParameterDescriptor
Source§impl PartialEq for ParameterDescriptor
impl PartialEq for ParameterDescriptor
impl StructuralPartialEq for ParameterDescriptor
Auto Trait Implementations§
impl Freeze for ParameterDescriptor
impl RefUnwindSafe for ParameterDescriptor
impl Send for ParameterDescriptor
impl Sync for ParameterDescriptor
impl Unpin for ParameterDescriptor
impl UnsafeUnpin for ParameterDescriptor
impl UnwindSafe for ParameterDescriptor
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