pub struct FunctionFlags {
pub variadic: bool,
pub generator: bool,
pub arg_is_unpacked_tuple: bool,
}Expand description
Flags used to define the properties of a Function
Fields§
§variadic: boolTrue if the function has a variadic argument
generator: boolTrue if the function is a generator
arg_is_unpacked_tuple: boolTrue if the function has a single argument which is an unpacked tuple
Implementations§
Source§impl FunctionFlags
impl FunctionFlags
Sourcepub const VARIADIC: u8 = 1u8
pub const VARIADIC: u8 = 1u8
Corresponding to FunctionFlags::variadic
Sourcepub const GENERATOR: u8 = 2u8
pub const GENERATOR: u8 = 2u8
Corresponding to FunctionFlags::generator
Sourcepub const ARG_IS_UNPACKED_TUPLE: u8 = 4u8
pub const ARG_IS_UNPACKED_TUPLE: u8 = 4u8
Corresponding to FunctionFlags::arg_is_unpacked_tuple
Auto Trait Implementations§
impl Freeze for FunctionFlags
impl RefUnwindSafe for FunctionFlags
impl Send for FunctionFlags
impl Sync for FunctionFlags
impl Unpin for FunctionFlags
impl UnwindSafe for FunctionFlags
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