Enum reaper_medium::SectionContext
source · [−]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
sourceimpl<'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
sourceimpl<'a> Clone for SectionContext<'a>
impl<'a> Clone for SectionContext<'a>
sourcefn clone(&self) -> SectionContext<'a>
fn clone(&self) -> SectionContext<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for SectionContext<'a>
impl<'a> Debug for SectionContext<'a>
sourceimpl<'a> Hash for SectionContext<'a>
impl<'a> Hash for SectionContext<'a>
sourceimpl<'a> PartialEq<SectionContext<'a>> for SectionContext<'a>
impl<'a> PartialEq<SectionContext<'a>> for SectionContext<'a>
sourcefn eq(&self, other: &SectionContext<'a>) -> bool
fn eq(&self, other: &SectionContext<'a>) -> bool
impl<'a> Copy for SectionContext<'a>
impl<'a> Eq for SectionContext<'a>
impl<'a> StructuralEq for SectionContext<'a>
impl<'a> StructuralPartialEq for SectionContext<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more