pub struct Dof { /* private fields */ }
Implementations§
source§impl Dof
impl Dof
source§impl Dof
impl Dof
pub fn name(&self) -> &str
pub fn board(&self) -> &KeyboardType
pub fn year(&self) -> Option<u32>
pub fn description(&self) -> Option<&str>
pub fn languages(&self) -> &[Language]
pub fn layers(&self) -> &BTreeMap<String, Layer>
pub fn anchor(&self) -> Anchor
pub fn fingering(&self) -> &Fingering
pub fn fingering_name(&self) -> Option<&NamedFingering>
sourcepub fn main_layer(&self) -> Option<&Layer>
pub fn main_layer(&self) -> Option<&Layer>
This function can be assumed to be infallible if you serialized into Dof as validation will have prevented you to create a Dof without a shift layer
sourcepub fn shift_layer(&self) -> Option<&Layer>
pub fn shift_layer(&self) -> Option<&Layer>
This function can be assumed to be infallible if you serialized into Dof as validation will have prevented you to create a Dof without a shift layer
pub fn layer(&self, name: &str) -> Option<&Layer>
pub fn keys(&self) -> Vec<DescriptiveKey>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Dof
impl<'de> Deserialize<'de> for Dof
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Dof> for DofIntermediate
impl From<Dof> for DofIntermediate
source§fn from(dof: Dof) -> DofIntermediate
fn from(dof: Dof) -> DofIntermediate
Converts to this type from the input type.
source§impl TryFrom<DofIntermediate> for Dof
impl TryFrom<DofIntermediate> for Dof
impl StructuralPartialEq for Dof
Auto Trait Implementations§
impl RefUnwindSafe for Dof
impl Send for Dof
impl Sync for Dof
impl Unpin for Dof
impl UnwindSafe for Dof
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