Enum rustdoc::clean::TraitMethodExperimental [-]  [+] [src]

pub enum TraitMethod {
    RequiredMethod(Item),
    ProvidedMethod(Item),
    TypeTraitItem(Item),
}

An item belonging to a trait, whether a method or associated. Could be named TraitItem except that's already taken by an exported enum variant.

Variants

RequiredMethod
ProvidedMethod
TypeTraitItem

Methods

impl TraitMethod

fn is_req(&self) -> bool

fn is_def(&self) -> bool

fn is_type(&self) -> bool

fn item<'a>(&'a self) -> &'a Item

Trait Implementations

Derived Implementations

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for TraitMethod

fn decode(__arg_0: &mut __D) -> Result<TraitMethod, __E>

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for TraitMethod

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

impl Clone for TraitMethod

fn clone(&self) -> TraitMethod

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