#[repr(C)]pub enum ComponentSource {
Builtin = 0,
Compiled = 1,
UserDefined = 2,
}Expand description
Source of a component definition — determines whether it can be exported
Variants§
Builtin = 0
Built into the DLL (HTML elements). Never exported.
Compiled = 1
Compiled Rust widget (Button, TextInput, etc.). Never exported.
UserDefined = 2
Defined via JSON/XML at runtime. Can be exported.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentSource
impl Clone for ComponentSource
Source§fn clone(&self) -> ComponentSource
fn clone(&self) -> ComponentSource
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 ComponentSource
impl Debug for ComponentSource
Source§impl Default for ComponentSource
impl Default for ComponentSource
Source§impl Hash for ComponentSource
impl Hash for ComponentSource
Source§impl Ord for ComponentSource
impl Ord for ComponentSource
Source§fn cmp(&self, other: &ComponentSource) -> Ordering
fn cmp(&self, other: &ComponentSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentSource
impl PartialEq for ComponentSource
Source§fn eq(&self, other: &ComponentSource) -> bool
fn eq(&self, other: &ComponentSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComponentSource
impl PartialOrd for ComponentSource
impl Copy for ComponentSource
impl Eq for ComponentSource
impl StructuralPartialEq for ComponentSource
Auto Trait Implementations§
impl Freeze for ComponentSource
impl RefUnwindSafe for ComponentSource
impl Send for ComponentSource
impl Sync for ComponentSource
impl Unpin for ComponentSource
impl UnsafeUnpin for ComponentSource
impl UnwindSafe for ComponentSource
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