pub struct StateConfig {
pub mouse: MouseConfig,
pub key_resolver: KeyResolverConfig,
}Expand description
Configuration to initialize the keyboard state.
Fields§
§mouse: MouseConfig§key_resolver: KeyResolverConfigTrait Implementations§
Source§impl Clone for StateConfig
impl Clone for StateConfig
Source§fn clone(&self) -> StateConfig
fn clone(&self) -> StateConfig
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 StateConfig
impl Debug for StateConfig
Source§impl<'de> Deserialize<'de> for StateConfig
impl<'de> Deserialize<'de> for StateConfig
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 MaxSize for StateConfig
impl MaxSize for StateConfig
Source§const POSTCARD_MAX_SIZE: usize = 25usize
const POSTCARD_MAX_SIZE: usize = 25usize
The maximum possible size that the serialization of this
type can have, in bytes.
Source§impl PartialEq for StateConfig
impl PartialEq for StateConfig
Source§impl Serialize for StateConfig
impl Serialize for StateConfig
impl Eq for StateConfig
impl StructuralPartialEq for StateConfig
Auto Trait Implementations§
impl Freeze for StateConfig
impl RefUnwindSafe for StateConfig
impl Send for StateConfig
impl Sync for StateConfig
impl Unpin for StateConfig
impl UnwindSafe for StateConfig
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