pub enum Separator {
Trailing(Symbol),
Proper(Symbol),
Liberal(Symbol),
Null,
}
Expand description
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.
Implementations§
source§impl Separator
impl Separator
sourcepub fn prefix_separator(self) -> Self
pub fn prefix_separator(self) -> Self
Returns the kind of separation for a prefix sequence.
Trait Implementations§
source§impl PartialEq for Separator
impl PartialEq for Separator
impl Copy for Separator
impl Eq for Separator
impl StructuralEq for Separator
impl StructuralPartialEq for Separator
Auto Trait Implementations§
impl RefUnwindSafe for Separator
impl Send for Separator
impl Sync for Separator
impl Unpin for Separator
impl UnwindSafe for Separator
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more