pub(crate) enum TupleArgumentsFlag {
DontTupleArguments,
TupleArguments,
}
Expand description
Controls whether the arguments are tupled. This is used for the call operator.
Tupling means that all call-side arguments are packed into a tuple and passed as a single parameter. For example, if tupling is enabled, this function:
fn f(x: (isize, isize)) {}
Can be called as:
ⓘ
f(1, 2);
Instead of:
f((1, 2));
Variants§
Trait Implementations§
source§impl Clone for TupleArgumentsFlag
impl Clone for TupleArgumentsFlag
source§fn clone(&self) -> TupleArgumentsFlag
fn clone(&self) -> TupleArgumentsFlag
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 PartialEq<TupleArgumentsFlag> for TupleArgumentsFlag
impl PartialEq<TupleArgumentsFlag> for TupleArgumentsFlag
source§fn eq(&self, other: &TupleArgumentsFlag) -> bool
fn eq(&self, other: &TupleArgumentsFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TupleArgumentsFlag
impl Eq for TupleArgumentsFlag
impl StructuralEq for TupleArgumentsFlag
impl StructuralPartialEq for TupleArgumentsFlag
Auto Trait Implementations§
impl RefUnwindSafe for TupleArgumentsFlag
impl Send for TupleArgumentsFlag
impl Sync for TupleArgumentsFlag
impl Unpin for TupleArgumentsFlag
impl UnwindSafe for TupleArgumentsFlag
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
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: 1 byte
Size for each variant:
DontTupleArguments
: 0 bytesTupleArguments
: 0 bytes