pub enum ElementOwner {
Core,
Mode(Cow<'static, str>),
Plugin(Cow<'static, str>),
}Expand description
Who owns an element (and thus owns its default styling). Core elements ship with the editor; modes/plugins register their own.
The mode/plugin id is a string rather than a ModeId /
PluginId because lattice-theme is a leaf crate — it cannot
depend on lattice-mode. Callers pass mode.id().as_str().
Variants§
Trait Implementations§
Source§impl Clone for ElementOwner
impl Clone for ElementOwner
Source§fn clone(&self) -> ElementOwner
fn clone(&self) -> ElementOwner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElementOwner
impl Debug for ElementOwner
impl Eq for ElementOwner
Source§impl Hash for ElementOwner
impl Hash for ElementOwner
Source§impl PartialEq for ElementOwner
impl PartialEq for ElementOwner
impl StructuralPartialEq for ElementOwner
Auto Trait Implementations§
impl Freeze for ElementOwner
impl RefUnwindSafe for ElementOwner
impl Send for ElementOwner
impl Sync for ElementOwner
impl Unpin for ElementOwner
impl UnsafeUnpin for ElementOwner
impl UnwindSafe for ElementOwner
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