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(Symbol)
Separation with the trailing separator included. In other words, all elements are followed by the separator.
Proper(Symbol)
The separator occurs between elements.
Liberal(Symbol)
The union of Trailing
and Proper
. In other words, the trailing separator may or may not
be present.
Null
No separation.
Methods
impl Separator
[src]
fn prefix_separator(self) -> Self
Returns the kind of separation for a prefix sequence.
Trait Implementations
impl Clone for Separator
[src]
fn clone(&self) -> Separator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Separator
[src]
impl Debug for Separator
[src]
impl Eq for Separator
[src]
impl Hash for Separator
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Separator
[src]
fn eq(&self, __arg_0: &Separator) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Separator) -> bool
This method tests for !=
.