pub enum Deduction {
Auto,
AutoType,
}Expand description
Which of the two spellings asked for a deduced type.
They deduce the same type and are not the same specifier: gcc names the one that was written in everything it says about a declaration, and C23’s is in scope inside its own initializer while GNU’s is not.
Variants§
Auto
C23’s auto, which is the storage class keyword with no other type specifier next to it.
AutoType
GNU’s __auto_type, which C23’s is modelled on and which every dialect has.
Implementations§
Trait Implementations§
impl Copy for Deduction
impl Eq for Deduction
impl StructuralPartialEq for Deduction
Auto Trait Implementations§
impl Freeze for Deduction
impl RefUnwindSafe for Deduction
impl Send for Deduction
impl Sync for Deduction
impl Unpin for Deduction
impl UnsafeUnpin for Deduction
impl UnwindSafe for Deduction
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