pub enum RenderDisplay {
Upper,
Lower,
Numeric,
}Expand description
Render as Upper, Lower, or Numeric
Variants§
Trait Implementations§
Source§impl Clone for RenderDisplay
impl Clone for RenderDisplay
Source§fn clone(&self) -> RenderDisplay
fn clone(&self) -> RenderDisplay
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderDisplay
impl Debug for RenderDisplay
Source§impl Default for RenderDisplay
impl Default for RenderDisplay
Source§impl PartialEq for RenderDisplay
impl PartialEq for RenderDisplay
Source§impl TryFrom<&str> for RenderDisplay
impl TryFrom<&str> for RenderDisplay
Source§impl TryFrom<char> for RenderDisplay
Provide any character to try_from to see what the render mode must have
been to generate it
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 StructuralPartialEq for RenderDisplay
Auto Trait Implementations§
impl Freeze for RenderDisplay
impl RefUnwindSafe for RenderDisplay
impl Send for RenderDisplay
impl Sync for RenderDisplay
impl Unpin for RenderDisplay
impl UnwindSafe for RenderDisplay
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