Struct koto_bytecode::FunctionFlags
source · 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 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