pub enum FunctionAttributeLocation {
Return,
Param(u32),
Function,
}
Expand description
Determines where on a function an attribute is assigned to.
Variants§
Return
Assign to the function’s return type.
Param(u32)
Assign to one of the function’s params (0-indexed).
Function
Assign to the function itself.
Trait Implementations§
Source§impl Clone for FunctionAttributeLocation
impl Clone for FunctionAttributeLocation
Source§fn clone(&self) -> FunctionAttributeLocation
fn clone(&self) -> FunctionAttributeLocation
Returns a copy of the value. Read more
1.0.0 · 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 FunctionAttributeLocation
impl Debug for FunctionAttributeLocation
impl Copy for FunctionAttributeLocation
impl Eq for FunctionAttributeLocation
impl StructuralPartialEq for FunctionAttributeLocation
Auto Trait Implementations§
impl Freeze for FunctionAttributeLocation
impl RefUnwindSafe for FunctionAttributeLocation
impl Send for FunctionAttributeLocation
impl Sync for FunctionAttributeLocation
impl Unpin for FunctionAttributeLocation
impl UnwindSafe for FunctionAttributeLocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
Return
: 0 bytesParam
: 4 bytesFunction
: 0 bytes