pub enum ParamAnnotation {
Show 23 variants
Transfer(TransferKind),
Nullable,
NotNullable,
Optional,
AllowNone,
NotOptional,
In,
Out,
OutCallerAllocates,
OutCalleeAllocates,
Inout,
Array,
ArrayDetailed(ArrayAnnotation),
ElementType(Vec<String>),
Scope(ScopeKind),
Closure,
ClosureFor(String),
Destroy(String),
Type(String),
Skip,
Default(String),
Attributes(Vec<(String, String)>),
Unknown(String),
}Expand description
Annotations valid on function parameters.
Variants§
Transfer(TransferKind)
Nullable
NotNullable
Optional
AllowNone
NotOptional
In
Out
OutCallerAllocates
OutCalleeAllocates
Inout
Array
ArrayDetailed(ArrayAnnotation)
ElementType(Vec<String>)
Scope(ScopeKind)
Closure
ClosureFor(String)
Destroy(String)
Type(String)
Skip
Default(String)
Attributes(Vec<(String, String)>)
Unknown(String)
Implementations§
Trait Implementations§
Source§impl Clone for ParamAnnotation
impl Clone for ParamAnnotation
Source§fn clone(&self) -> ParamAnnotation
fn clone(&self) -> ParamAnnotation
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 ParamAnnotation
impl Debug for ParamAnnotation
Source§impl PartialEq for ParamAnnotation
impl PartialEq for ParamAnnotation
Source§fn eq(&self, other: &ParamAnnotation) -> bool
fn eq(&self, other: &ParamAnnotation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParamAnnotation
impl Serialize for ParamAnnotation
impl Eq for ParamAnnotation
impl StructuralPartialEq for ParamAnnotation
Auto Trait Implementations§
impl Freeze for ParamAnnotation
impl RefUnwindSafe for ParamAnnotation
impl Send for ParamAnnotation
impl Sync for ParamAnnotation
impl Unpin for ParamAnnotation
impl UnsafeUnpin for ParamAnnotation
impl UnwindSafe for ParamAnnotation
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