Enum cfg::sequence::Separator [] [src]

pub enum Separator {
    Trailing(Symbol),
    Proper(Symbol),
    Liberal(Symbol),
    Null,
}

The separator symbol and mode of separation in a sequence, or Null for no separation.

Variants

Trailing

Separation with the trailing separator included. In other words, all elements are followed by the separator.

Proper

The separator occurs between elements.

Liberal

The union of Trailing and Proper. In other words, the trailing separator may or may not be present.

Null

No separation.

Methods

impl Separator

fn prefix_separator(self) -> Self

Returns the kind of separation for a prefix sequence.

Trait Implementations

impl Into<Option<Symbol>> for Separator

fn into(self) -> Option<Symbol>

Derived Implementations

impl PartialEq for Separator

fn eq(&self, __arg_0: &Separator) -> bool

fn ne(&self, __arg_0: &Separator) -> bool

impl Hash for Separator

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Separator

impl Debug for Separator

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

impl Copy for Separator

impl Clone for Separator

fn clone(&self) -> Separator

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