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§impl Debug for ParamAnnotation
impl Debug for ParamAnnotation
impl Eq for ParamAnnotation
Source§impl PartialEq for ParamAnnotation
impl PartialEq for ParamAnnotation
Source§impl Serialize for ParamAnnotation
impl Serialize 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