pub enum ParameterAttribute {
None,
Opt,
}
Expand description
Attribute in a function parameter.
Variants
None
No or unrecognized attribute
Opt
#[opt]
Trait Implementations
sourceimpl Clone for ParameterAttribute
impl Clone for ParameterAttribute
sourcefn clone(&self) -> ParameterAttribute
fn clone(&self) -> ParameterAttribute
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParameterAttribute
impl Debug for ParameterAttribute
sourceimpl Hash for ParameterAttribute
impl Hash for ParameterAttribute
sourceimpl Ord for ParameterAttribute
impl Ord for ParameterAttribute
sourcefn cmp(&self, other: &ParameterAttribute) -> Ordering
fn cmp(&self, other: &ParameterAttribute) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ParameterAttribute> for ParameterAttribute
impl PartialEq<ParameterAttribute> for ParameterAttribute
sourcefn eq(&self, other: &ParameterAttribute) -> bool
fn eq(&self, other: &ParameterAttribute) -> bool
sourceimpl PartialOrd<ParameterAttribute> for ParameterAttribute
impl PartialOrd<ParameterAttribute> for ParameterAttribute
sourcefn partial_cmp(&self, other: &ParameterAttribute) -> Option<Ordering>
fn partial_cmp(&self, other: &ParameterAttribute) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ParameterAttribute
impl Eq for ParameterAttribute
impl StructuralEq for ParameterAttribute
impl StructuralPartialEq for ParameterAttribute
Auto Trait Implementations
impl RefUnwindSafe for ParameterAttribute
impl Send for ParameterAttribute
impl Sync for ParameterAttribute
impl Unpin for ParameterAttribute
impl UnwindSafe for ParameterAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more