pub struct ClassNode(/* private fields */);Expand description
Salsa input representing a single class or interface in the inheritance
graph. Fields are kept minimal — only what class_ancestors needs.
Invariant: every FQCN in the codebase that is known to the Salsa DB has
exactly one ClassNode handle, stored in MirDb::class_nodes. When a
class is removed (file deleted or re-indexed), its node is marked
active = false rather than dropped, so dependent class_ancestors queries
can still observe the change and re-run.
Implementations§
Source§impl ClassNode
impl ClassNode
pub fn ingredient(db: &dyn Database) -> &IngredientImpl<Self>
pub fn ingredient_mut( zalsa_mut: &mut Zalsa, ) -> (&mut IngredientImpl<Self>, &mut Runtime)
Source§impl ClassNode
impl ClassNode
pub fn new<Db_>( db: &Db_, fqcn: Arc<str>, active: bool, is_interface: bool, is_trait: bool, is_enum: bool, is_abstract: bool, parent: Option<Arc<str>>, interfaces: Arc<[Arc<str>]>, traits: Arc<[Arc<str>]>, extends: Arc<[Arc<str>]>, template_params: Arc<[TemplateParam]>, require_extends: Arc<[Arc<str>]>, require_implements: Arc<[Arc<str>]>, is_backed_enum: bool, mixins: Arc<[Arc<str>]>, deprecated: Option<Arc<str>>, enum_scalar_type: Option<Union>, is_final: bool, is_readonly: bool, location: Option<Location>, extends_type_args: Arc<[Union]>, implements_type_args: ImplementsTypeArgs, ) -> Self
pub fn builder( fqcn: Arc<str>, active: bool, is_interface: bool, is_trait: bool, is_enum: bool, is_abstract: bool, parent: Option<Arc<str>>, interfaces: Arc<[Arc<str>]>, traits: Arc<[Arc<str>]>, extends: Arc<[Arc<str>]>, template_params: Arc<[TemplateParam]>, require_extends: Arc<[Arc<str>]>, require_implements: Arc<[Arc<str>]>, is_backed_enum: bool, mixins: Arc<[Arc<str>]>, deprecated: Option<Arc<str>>, enum_scalar_type: Option<Union>, is_final: bool, is_readonly: bool, location: Option<Location>, extends_type_args: Arc<[Union]>, implements_type_args: ImplementsTypeArgs, ) -> <Self as HasBuilder>::Builder
pub fn fqcn<'db, Db_>(self, db: &'db Db_) -> Arc<str> ⓘ
Sourcepub fn active<'db, Db_>(self, db: &'db Db_) -> bool
pub fn active<'db, Db_>(self, db: &'db Db_) -> bool
false when the class has been removed from the codebase. Dependent
queries observe this change and re-run, returning empty ancestors.
pub fn is_interface<'db, Db_>(self, db: &'db Db_) -> bool
Sourcepub fn is_trait<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_trait<'db, Db_>(self, db: &'db Db_) -> bool
true for trait nodes. Traits don’t currently participate in the
class_ancestors query (it returns empty for traits), but registering
them as ClassNodes lets callers answer type_exists-style questions
through the db.
Sourcepub fn is_enum<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_enum<'db, Db_>(self, db: &'db Db_) -> bool
true for enum nodes. See note on is_trait.
Sourcepub fn is_abstract<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_abstract<'db, Db_>(self, db: &'db Db_) -> bool
true if the class is declared abstract. Always false for
interfaces, traits, and enums.
Sourcepub fn parent<'db, Db_>(self, db: &'db Db_) -> Option<Arc<str>>
pub fn parent<'db, Db_>(self, db: &'db Db_) -> Option<Arc<str>>
Direct parent class (classes only; None for interfaces).
Sourcepub fn interfaces<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn interfaces<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
Directly implemented interfaces (classes only).
Sourcepub fn traits<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn traits<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
Used traits (classes only). Traits are added to the ancestor list but their own ancestors are not recursed into, matching PHP semantics.
Sourcepub fn extends<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn extends<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
Directly extended interfaces (interfaces only).
Sourcepub fn template_params<'db, Db_>(self, db: &'db Db_) -> Arc<[TemplateParam]> ⓘ
pub fn template_params<'db, Db_>(self, db: &'db Db_) -> Arc<[TemplateParam]> ⓘ
Declared @template parameters from the class/interface/trait
docblock. Empty for classes without templates.
Sourcepub fn require_extends<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn require_extends<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
@psalm-require-extends / @phpstan-require-extends — FQCNs that
using classes must extend. Populated for trait nodes only; empty for
classes/interfaces/enums.
Sourcepub fn require_implements<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn require_implements<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
@psalm-require-implements / @phpstan-require-implements — FQCNs
that using classes must implement. Populated for trait nodes only;
empty for classes/interfaces/enums.
Sourcepub fn is_backed_enum<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_backed_enum<'db, Db_>(self, db: &'db Db_) -> bool
true if this is a backed enum (declared with a scalar type).
Always false for non-enum nodes and pure (unbacked) enums. Used by
extends_or_implements_via_db to answer the implicit BackedEnum
interface check.
Sourcepub fn mixins<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
pub fn mixins<'db, Db_>(self, db: &'db Db_) -> Arc<[Arc<str>]> ⓘ
@mixin / @psalm-mixin FQCNs declared on the class docblock.
Used by lookup_method_in_chain for delegated magic-method lookup.
Empty for interfaces, traits, and enums (mixin is a class-only
docblock concept).
Sourcepub fn deprecated<'db, Db_>(self, db: &'db Db_) -> Option<Arc<str>>
pub fn deprecated<'db, Db_>(self, db: &'db Db_) -> Option<Arc<str>>
@deprecated message from the class docblock, if any. Mirrors
ClassStorage::deprecated. Empty / None for interfaces, traits,
and enums (S5-PR42 only mirrors the class-level field — those storages
don’t carry a deprecated message).
Sourcepub fn enum_scalar_type<'db, Db_>(self, db: &'db Db_) -> Option<Union>
pub fn enum_scalar_type<'db, Db_>(self, db: &'db Db_) -> Option<Union>
For backed-enum nodes: the declared scalar type (int/string).
Mirrors EnumStorage::scalar_type. None for non-enum nodes and
for unbacked (pure) enums. Used by the Enum->value property read
in expr.rs to return the backed scalar type instead of mixed.
Sourcepub fn is_final<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_final<'db, Db_>(self, db: &'db Db_) -> bool
true if the class is declared final. Always false for
interfaces, traits, and enums (PHP enums are implicitly final but the
codebase doesn’t currently track that on EnumStorage).
Sourcepub fn is_readonly<'db, Db_>(self, db: &'db Db_) -> bool
pub fn is_readonly<'db, Db_>(self, db: &'db Db_) -> bool
true if the class is declared readonly. Always false for
non-class kinds.
Sourcepub fn location<'db, Db_>(self, db: &'db Db_) -> Option<Location>
pub fn location<'db, Db_>(self, db: &'db Db_) -> Option<Location>
Source location of the class declaration. Mirrors
ClassStorage::location (and InterfaceStorage::location,
TraitStorage::location, EnumStorage::location). Used by
ClassAnalyzer to attribute issues to the right span.
Sourcepub fn extends_type_args<'db, Db_>(self, db: &'db Db_) -> Arc<[Union]> ⓘ
pub fn extends_type_args<'db, Db_>(self, db: &'db Db_) -> Arc<[Union]> ⓘ
Type arguments from @extends Parent<T1, T2> — populated for
classes only. Mirrors ClassStorage::extends_type_args.
Sourcepub fn implements_type_args<'db, Db_>(self, db: &'db Db_) -> ImplementsTypeArgs
pub fn implements_type_args<'db, Db_>(self, db: &'db Db_) -> ImplementsTypeArgs
Type arguments from @implements Iface<T1, T2> — populated for
classes only. Mirrors ClassStorage::implements_type_args.
pub fn set_fqcn<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<str>> + use<'db, Db_>
pub fn set_active<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_is_interface<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_is_trait<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_is_enum<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_is_abstract<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_parent<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Option<Arc<str>>> + use<'db, Db_>
pub fn set_interfaces<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_traits<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_extends<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_template_params<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[TemplateParam]>> + use<'db, Db_>
pub fn set_require_extends<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_require_implements<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_is_backed_enum<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_mixins<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Arc<str>]>> + use<'db, Db_>
pub fn set_deprecated<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Option<Arc<str>>> + use<'db, Db_>
pub fn set_enum_scalar_type<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Option<Union>> + use<'db, Db_>
pub fn set_is_final<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_is_readonly<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = bool> + use<'db, Db_>
pub fn set_location<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Option<Location>> + use<'db, Db_>
pub fn set_extends_type_args<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = Arc<[Union]>> + use<'db, Db_>
pub fn set_implements_type_args<'db, Db_>( self, db: &'db mut Db_, ) -> impl Setter<FieldTy = ImplementsTypeArgs> + use<'db, Db_>
Sourcepub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'__trivial_bounds> Arc<str>: Debug,
for<'__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds> bool: Debug,
for<'__trivial_bounds, '__trivial_bounds> Option<Arc<str>>: Debug,
for<'__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds> Arc<[Arc<str>]>: Debug,
for<'__trivial_bounds> Arc<[TemplateParam]>: Debug,
for<'__trivial_bounds> Option<Union>: Debug,
for<'__trivial_bounds> Option<Location>: Debug,
for<'__trivial_bounds> Arc<[Union]>: Debug,
for<'__trivial_bounds> ImplementsTypeArgs: Debug,
pub fn default_debug_fmt(this: Self, f: &mut Formatter<'_>) -> Resultwhere
for<'__trivial_bounds> Arc<str>: Debug,
for<'__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds> bool: Debug,
for<'__trivial_bounds, '__trivial_bounds> Option<Arc<str>>: Debug,
for<'__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds, '__trivial_bounds> Arc<[Arc<str>]>: Debug,
for<'__trivial_bounds> Arc<[TemplateParam]>: Debug,
for<'__trivial_bounds> Option<Union>: Debug,
for<'__trivial_bounds> Option<Location>: Debug,
for<'__trivial_bounds> Arc<[Union]>: Debug,
for<'__trivial_bounds> ImplementsTypeArgs: Debug,
Default debug formatting for this struct (may be useful if you define your own Debug impl)
Trait Implementations§
Source§impl Configuration for ClassNode
impl Configuration for ClassNode
const LOCATION: Location
const DEBUG_NAME: &'static str = "ClassNode"
const FIELD_DEBUG_NAMES: &'static [&'static str]
Source§type Fields = (Arc<str>, bool, bool, bool, bool, bool, Option<Arc<str>>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, Arc<[TemplateParam]>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, bool, Arc<[Arc<str>]>, Option<Arc<str>>, Option<Union>, bool, bool, Option<Location>, Arc<[Union]>, Arc<[(Arc<str>, Arc<[Union]>)]>)
type Fields = (Arc<str>, bool, bool, bool, bool, bool, Option<Arc<str>>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, Arc<[TemplateParam]>, Arc<[Arc<str>]>, Arc<[Arc<str>]>, bool, Arc<[Arc<str>]>, Option<Arc<str>>, Option<Union>, bool, bool, Option<Location>, Arc<[Union]>, Arc<[(Arc<str>, Arc<[Union]>)]>)
type Revisions = [Revision; 22]
type Durabilities = [Durability; 22]
Source§fn serialize<S: Serializer>(
fields: &Self::Fields,
serializer: S,
) -> Result<S::Ok, S::Error>
fn serialize<S: Serializer>( fields: &Self::Fields, serializer: S, ) -> Result<S::Ok, S::Error>
serde. Read moreSource§fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
) -> Result<Self::Fields, D::Error>
fn deserialize<'de, D: Deserializer<'de>>( deserializer: D, ) -> Result<Self::Fields, D::Error>
serde. Read moreSource§impl SalsaStructInDb for ClassNode
impl SalsaStructInDb for ClassNode
type MemoIngredientMap = MemoIngredientSingletonIndex
Source§fn lookup_ingredient_index(aux: &Zalsa) -> IngredientIndices
fn lookup_ingredient_index(aux: &Zalsa) -> IngredientIndices
Source§fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
fn entries(zalsa: &Zalsa) -> impl Iterator<Item = DatabaseKeyIndex> + '_
impl Copy for ClassNode
impl Eq for ClassNode
impl StructuralPartialEq for ClassNode
Auto Trait Implementations§
impl Freeze for ClassNode
impl RefUnwindSafe for ClassNode
impl Send for ClassNode
impl Sync for ClassNode
impl Unpin for ClassNode
impl UnsafeUnpin for ClassNode
impl UnwindSafe for ClassNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> HashEqLike<&T> for T
impl<T> HashEqLike<&T> for T
Source§impl<T> HashEqLike<Cow<'_, T>> for T
impl<T> HashEqLike<Cow<'_, T>> for T
Source§impl<T> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more