pub enum ComponentType {
Class,
AbstractClass,
Instance,
}Expand description
Whether a component is a concrete class, an abstract class, or a singleton instance.
Used by LSP completion to decide what hover/detail info to show:
Class→ instantiable, show constructor parametersAbstractClass→ not directly instantiable, show as base type in completionsInstance→ pre-built singleton, no constructor parameters needed
Variants§
Implementations§
Source§impl ComponentType
impl ComponentType
pub fn from_type_iris(types: &[String]) -> Option<Self>
Trait Implementations§
Source§impl Clone for ComponentType
impl Clone for ComponentType
Source§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
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 Debug for ComponentType
impl Debug for ComponentType
Source§impl Display for ComponentType
impl Display for ComponentType
Source§impl PartialEq for ComponentType
impl PartialEq for ComponentType
impl Copy for ComponentType
impl Eq for ComponentType
impl StructuralPartialEq for ComponentType
Auto Trait Implementations§
impl Freeze for ComponentType
impl RefUnwindSafe for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Unpin for ComponentType
impl UnsafeUnpin for ComponentType
impl UnwindSafe for ComponentType
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