pub struct Turbofish<Name, Args>(pub Name, pub Args);Expand description
Provides access to the “turbofish” syntax, i.e. Name::<Args>.
The first tuple value must be writable, and the second must be a sequence.
Note that if the sequence outputs nothing, this struct will behave as if no args were
specified. I.e. Turbofish(Name, NoOpSeq) is equivalent to just Name.
Tuple Fields§
§0: Name§1: ArgsTrait Implementations§
Auto Trait Implementations§
impl<Name, Args> Freeze for Turbofish<Name, Args>
impl<Name, Args> RefUnwindSafe for Turbofish<Name, Args>where
Name: RefUnwindSafe,
Args: RefUnwindSafe,
impl<Name, Args> Send for Turbofish<Name, Args>
impl<Name, Args> Sync for Turbofish<Name, Args>
impl<Name, Args> Unpin for Turbofish<Name, Args>
impl<Name, Args> UnwindSafe for Turbofish<Name, Args>where
Name: UnwindSafe,
Args: UnwindSafe,
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