Enum letter_sequence::sequence::renderer::RenderDisplay
source · [−]pub enum RenderDisplay {
Upper,
Lower,
Numeric,
}Expand description
Render as Upper, Lower, or Numeric
Variants
Upper
Lower
Numeric
Trait Implementations
sourceimpl Clone for RenderDisplay
impl Clone for RenderDisplay
sourcefn clone(&self) -> RenderDisplay
fn clone(&self) -> RenderDisplay
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RenderDisplay
impl Debug for RenderDisplay
sourceimpl Default for RenderDisplay
impl Default for RenderDisplay
sourceimpl PartialEq<RenderDisplay> for RenderDisplay
impl PartialEq<RenderDisplay> for RenderDisplay
sourceimpl TryFrom<&str> for RenderDisplay
impl TryFrom<&str> for RenderDisplay
sourceimpl TryFrom<char> for RenderDisplay
impl TryFrom<char> for RenderDisplay
Provide any character to try_from to see what the render mode must have been to generate it
use letter_sequence::SequenceError;
use letter_sequence::sequence::renderer::RenderDisplay;
use std::convert::TryFrom;
assert_eq!( RenderDisplay::try_from('A').unwrap(), RenderDisplay::Upper );
assert_eq!( RenderDisplay::try_from('5').unwrap(), RenderDisplay::Numeric );
assert_eq!( RenderDisplay::try_from('a').unwrap(), RenderDisplay::Lower );
assert!( matches!(RenderDisplay::try_from('!').unwrap_err(), SequenceError::InvalidCharacter('!')) );impl Copy for RenderDisplay
impl Eq for RenderDisplay
impl StructuralEq for RenderDisplay
impl StructuralPartialEq for RenderDisplay
Auto Trait Implementations
impl RefUnwindSafe for RenderDisplay
impl Send for RenderDisplay
impl Sync for RenderDisplay
impl Unpin for RenderDisplay
impl UnwindSafe for RenderDisplay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more