Enum linefeed::complete::Suffix
[−]
[src]
pub enum Suffix { Default, None, Some(char), }
Specifies an optional suffix to override the default value
Variants
Default
Use the default suffix
None
Use no suffix
Some(char)
Use the given suffix
Methods
impl Suffix
[src]
fn is_default(&self) -> bool
Returns whether the Suffix
value is the Default
variant.
fn is_some(&self) -> bool
Returns whether the Suffix
value is the Some(_)
variant.
fn is_none(&self) -> bool
Returns whether the Suffix
value is the None
variant.
fn with_default(self, default: Option<char>) -> Option<char>
Returns an Option<char>
, using the given value in place of Default
.
Trait Implementations
impl Copy for Suffix
[src]
impl Clone for Suffix
[src]
fn clone(&self) -> Suffix
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 Debug for Suffix
[src]
impl Eq for Suffix
[src]
impl PartialEq for Suffix
[src]
fn eq(&self, __arg_0: &Suffix) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Suffix) -> bool
This method tests for !=
.