Enum rustdoc::doctree::StructTypeUnstable [-] [+] [src]

pub enum StructType {
    Plain,
    Tuple,
    Newtype,
    Unit,
}

Variants

Plain

A normal struct

Tuple

A tuple struct

Newtype

A newtype struct (tuple struct with one element)

Unit

A unit struct

Trait Implementations

Derived Implementations

impl Copy for StructType

impl Decodable for StructType

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<StructType, __D>

impl Encodable for StructType

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S>

impl Clone for StructType

fn clone(&self) -> StructType

fn clone_from(&mut self, source: &Self)

impl Debug for StructType

fn fmt(&self, __arg_0: &mut Formatter) -> Result