pub enum SectionContext<'a> {
MainSection,
Sec(&'a KbdSectionInfo),
}Expand description
Determines the section in which an action is located.
Command IDs are not globally unique. They are only unique within a particular section.
Variants§
MainSection
The main section.
Sec(&'a KbdSectionInfo)
A particular section, not necessarily the main section.
Implementations§
Source§impl<'a> SectionContext<'a>
impl<'a> SectionContext<'a>
Sourcepub fn to_raw(&self) -> *mut KbdSectionInfo
pub fn to_raw(&self) -> *mut KbdSectionInfo
Converts this value to a raw pointer as expected by the low-level API.
Trait Implementations§
Source§impl<'a> Clone for SectionContext<'a>
impl<'a> Clone for SectionContext<'a>
Source§fn clone(&self) -> SectionContext<'a>
fn clone(&self) -> SectionContext<'a>
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<'a> Debug for SectionContext<'a>
impl<'a> Debug for SectionContext<'a>
Source§impl<'a> Hash for SectionContext<'a>
impl<'a> Hash for SectionContext<'a>
Source§impl<'a> PartialEq for SectionContext<'a>
impl<'a> PartialEq for SectionContext<'a>
impl<'a> Copy for SectionContext<'a>
impl<'a> Eq for SectionContext<'a>
impl<'a> StructuralPartialEq for SectionContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for SectionContext<'a>
impl<'a> RefUnwindSafe for SectionContext<'a>
impl<'a> !Send for SectionContext<'a>
impl<'a> !Sync for SectionContext<'a>
impl<'a> Unpin for SectionContext<'a>
impl<'a> UnwindSafe for SectionContext<'a>
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