pub struct State(/* private fields */);Implementations§
Source§impl State
impl State
pub unsafe fn from_ptr(ptr: *mut xkb_state) -> Self
pub unsafe fn as_ptr(&self) -> *mut xkb_state
pub fn keymap(&self) -> Keymap
pub fn key<T: Into<Keycode>>(&self, code: T) -> Key<'_>
pub fn serialize(&mut self) -> Serialize<'_>
pub fn update(&mut self) -> Update<'_>
pub fn mods(&self) -> Mods<'_>
pub fn layouts(&self) -> Layouts<'_>
pub fn leds(&self) -> Leds<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl UnwindSafe for State
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