pub struct ComponentArg { /* private fields */ }Expand description
Information about a single component argument.
Implementations§
Source§impl ComponentArg
impl ComponentArg
Sourcepub fn arg_type(&self) -> Option<ComponentArgType>
pub fn arg_type(&self) -> Option<ComponentArgType>
The type, if one was specified.
Sourcepub fn is_required(&self) -> bool
pub fn is_required(&self) -> bool
Whether this param is required, eg no default value
Trait Implementations§
Source§impl Clone for ComponentArg
impl Clone for ComponentArg
Source§fn clone(&self) -> ComponentArg
fn clone(&self) -> ComponentArg
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 moreAuto Trait Implementations§
impl Freeze for ComponentArg
impl RefUnwindSafe for ComponentArg
impl Send for ComponentArg
impl Sync for ComponentArg
impl Unpin for ComponentArg
impl UnsafeUnpin for ComponentArg
impl UnwindSafe for ComponentArg
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