Enum rustc_typeck::check::TupleArgumentsFlag
source · [−]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
DontTupleArguments
TupleArguments
Trait Implementations
sourceimpl Clone for TupleArgumentsFlag
impl Clone for TupleArgumentsFlag
sourcefn clone(&self) -> TupleArgumentsFlag
fn clone(&self) -> TupleArgumentsFlag
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<TupleArgumentsFlag> for TupleArgumentsFlag
impl PartialEq<TupleArgumentsFlag> for TupleArgumentsFlag
sourcefn eq(&self, other: &TupleArgumentsFlag) -> bool
fn eq(&self, other: &TupleArgumentsFlag) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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