Struct syn::Variadic

source ·
pub struct Variadic {
    pub attrs: Vec<Attribute>,
    pub pat: Option<(Box<Pat>, Colon)>,
    pub dots: DotDotDot,
    pub comma: Option<Comma>,
}
Expand description

The variadic argument of a foreign function.

extern "C" {
    fn printf(format: *const c_char, ...) -> c_int;
    //                               ^^^
}

Fields§

§attrs: Vec<Attribute>§pat: Option<(Box<Pat>, Colon)>§dots: DotDotDot§comma: Option<Comma>

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.