pub enum Property {
On,
Off,
Value(i32),
None,
}
Expand description
Parameters for a control word
Variants§
Implementations§
Source§impl Property
impl Property
pub fn as_bool(&self) -> bool
pub fn get_value_as<T: TryFrom<i32>>(&self) -> Result<T, ParserError>
pub fn get_value(&self) -> i32
Sourcepub fn get_unicode_value(&self) -> Result<u16, ParserError>
pub fn get_unicode_value(&self) -> Result<u16, ParserError>
Return the u16 corresponding value of the unicode
Trait Implementations§
impl Copy for Property
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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