pub struct TypeScript { /* private fields */ }Expand description
The TypeScript language implementation.
Implementations§
Trait Implementations§
Source§impl BodyAnalysisSemantics for TypeScript
impl BodyAnalysisSemantics for TypeScript
Source§fn analyze_changed_body(
&self,
old_body: &str,
new_body: &str,
func_name: &str,
file_path: &str,
) -> Vec<BodyAnalysisResult>
fn analyze_changed_body( &self, old_body: &str, new_body: &str, func_name: &str, file_path: &str, ) -> Vec<BodyAnalysisResult>
Run deterministic analysis on a changed function’s body. Read more
Source§impl Clone for TypeScript
impl Clone for TypeScript
Source§fn clone(&self) -> TypeScript
fn clone(&self) -> TypeScript
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 TypeScript
impl Debug for TypeScript
Source§impl Default for TypeScript
impl Default for TypeScript
Source§impl HierarchySemantics<TsSymbolData> for TypeScript
impl HierarchySemantics<TsSymbolData> for TypeScript
Source§fn family_source_paths(
&self,
repo: &Path,
git_ref: &str,
family_name: &str,
) -> Vec<String>
fn family_source_paths( &self, repo: &Path, git_ref: &str, family_name: &str, ) -> Vec<String>
Get file paths belonging to a component family directory. Read more
Source§fn family_name_from_symbols(
&self,
symbols: &[&Symbol<TsSymbolData>],
) -> Option<String>
fn family_name_from_symbols( &self, symbols: &[&Symbol<TsSymbolData>], ) -> Option<String>
Get a human-readable family name from a group of symbols. Read more
Source§fn is_hierarchy_candidate(&self, sym: &Symbol<TsSymbolData>) -> bool
fn is_hierarchy_candidate(&self, sym: &Symbol<TsSymbolData>) -> bool
Whether a symbol is a candidate for hierarchy inference. Read more
Source§fn cross_family_relationships(
&self,
repo: &Path,
git_ref: &str,
) -> Vec<(String, String, String)>
fn cross_family_relationships( &self, repo: &Path, git_ref: &str, ) -> Vec<(String, String, String)>
Detect cross-family relationships (e.g., React context imports). Read more
Source§fn compute_deterministic_hierarchy(
&self,
new_surface: &ApiSurface<TsSymbolData>,
structural_changes: &[StructuralChange],
) -> HashMap<String, HashMap<String, Vec<ExpectedChild>>>
fn compute_deterministic_hierarchy( &self, new_surface: &ApiSurface<TsSymbolData>, structural_changes: &[StructuralChange], ) -> HashMap<String, HashMap<String, Vec<ExpectedChild>>>
Compute component hierarchy deterministically. Read more
Read related component signatures for cross-family context. Read more
Source§fn min_components_for_hierarchy(&self) -> usize
fn min_components_for_hierarchy(&self) -> usize
Minimum number of exported types for a family to qualify
for hierarchy inference. Default: 2.
Source§impl Language for TypeScript
impl Language for TypeScript
Source§const RENAMEABLE_SYMBOL_KINDS: &'static [SymbolKind]
const RENAMEABLE_SYMBOL_KINDS: &'static [SymbolKind]
Symbol kinds that represent type definitions eligible for rename inference.
TypeScript:
&[SymbolKind::Interface, SymbolKind::Class]
Go: &[SymbolKind::Struct, SymbolKind::Interface]Source§const MANIFEST_FILES: &'static [&'static str]
const MANIFEST_FILES: &'static [&'static str]
Manifest file path(s) for this language’s package system. Read more
Source§const SOURCE_FILE_PATTERNS: &'static [&'static str]
const SOURCE_FILE_PATTERNS: &'static [&'static str]
Source file glob patterns for
git diff --name-only filtering. Read moreSource§type SymbolData = TsSymbolData
type SymbolData = TsSymbolData
Per-symbol metadata type carried in
Symbol<M>.language_data. Read moreSource§type Category = TsCategory
type Category = TsCategory
Behavioral change categories for this language.
Source§type ManifestChangeType = TsManifestChangeType
type ManifestChangeType = TsManifestChangeType
Manifest change types for this language’s package system.
Source§type Evidence = TsEvidence
type Evidence = TsEvidence
Evidence data carried on behavioral changes.
Source§type ReportData = TsReportData
type ReportData = TsReportData
Language-specific report data.
Source§type AnalysisExtensions = TsAnalysisExtensions
type AnalysisExtensions = TsAnalysisExtensions
Language-specific analysis extensions. Read more
Source§fn extract(
&self,
repo: &Path,
git_ref: &str,
degradation: Option<&DegradationTracker>,
) -> Result<ApiSurface<TsSymbolData>>
fn extract( &self, repo: &Path, git_ref: &str, degradation: Option<&DegradationTracker>, ) -> Result<ApiSurface<TsSymbolData>>
Extract the public API surface from source code at a git ref. Read more
Source§fn extract_keeping_worktree(
&self,
repo: &Path,
git_ref: &str,
degradation: Option<&DegradationTracker>,
) -> Result<ExtractionWithWorktree<TsSymbolData>>
fn extract_keeping_worktree( &self, repo: &Path, git_ref: &str, degradation: Option<&DegradationTracker>, ) -> Result<ExtractionWithWorktree<TsSymbolData>>
Extract the API surface and optionally keep the worktree alive. Read more
Source§fn parse_changed_functions(
&self,
repo: &Path,
from_ref: &str,
to_ref: &str,
) -> Result<Vec<ChangedFunction>>
fn parse_changed_functions( &self, repo: &Path, from_ref: &str, to_ref: &str, ) -> Result<Vec<ChangedFunction>>
Parse the diff between two git refs and identify all functions
whose bodies changed (public AND private).
Source§fn find_callers(&self, file: &Path, symbol_name: &str) -> Result<Vec<Caller>>
fn find_callers(&self, file: &Path, symbol_name: &str) -> Result<Vec<Caller>>
Given a function, find what calls it (callers, not callees).
Source§fn find_references(
&self,
file: &Path,
symbol_name: &str,
) -> Result<Vec<Reference>>
fn find_references( &self, file: &Path, symbol_name: &str, ) -> Result<Vec<Reference>>
Given a public symbol, find all references to it across the project.
Source§fn find_tests(&self, repo: &Path, source_file: &Path) -> Result<Vec<TestFile>>
fn find_tests(&self, repo: &Path, source_file: &Path) -> Result<Vec<TestFile>>
Given a source file, find its associated test file(s) by convention.
Source§fn diff_test_assertions(
&self,
repo: &Path,
test_file: &TestFile,
from_ref: &str,
to_ref: &str,
) -> Result<TestDiff>
fn diff_test_assertions( &self, repo: &Path, test_file: &TestFile, from_ref: &str, to_ref: &str, ) -> Result<TestDiff>
Diff the test file between two refs. Returns changed assertion lines.
Source§fn build_report(
&self,
results: &AnalysisResult<Self>,
repo: &Path,
from_ref: &str,
to_ref: &str,
) -> AnalysisReport<Self>
fn build_report( &self, results: &AnalysisResult<Self>, repo: &Path, from_ref: &str, to_ref: &str, ) -> AnalysisReport<Self>
Build the language-specific report from analysis results. Read more
Source§fn behavioral_change_kind(
&self,
evidence_type: &EvidenceType,
) -> BehavioralChangeKind
fn behavioral_change_kind( &self, evidence_type: &EvidenceType, ) -> BehavioralChangeKind
Determine the behavioral change kind from the evidence type.
TypeScript: LLM/body analysis → Class (component-level), test delta → Function
Default: always Function
Source§fn extract_referenced_symbols(&self, description: &str) -> Vec<String>
fn extract_referenced_symbols(&self, description: &str) -> Vec<String>
Extract symbol references from a behavioral change description.
TypeScript: extracts PascalCase component names (e.g.,
<Modal>, `Button`)
Default: empty vecSource§fn display_name(&self, qualified_name: &str) -> String
fn display_name(&self, qualified_name: &str) -> String
Format a qualified name for display in reports.
TypeScript:
src/Modal.tsx::Modal → Modal
Default: return the qualified name as-isSource§fn llm_categories(&self) -> Vec<LlmCategoryDefinition>
fn llm_categories(&self) -> Vec<LlmCategoryDefinition>
Return the behavioral change categories for LLM prompts. Read more
Source§fn diff_manifest_content(old: &str, new: &str) -> Vec<ManifestChange<Self>>
fn diff_manifest_content(old: &str, new: &str) -> Vec<ManifestChange<Self>>
Diff manifest content between two versions. Read more
Source§fn discover_package_manifests(
repo: &Path,
git_ref: &str,
) -> Vec<(String, String)>
fn discover_package_manifests( repo: &Path, git_ref: &str, ) -> Vec<(String, String)>
Discover per-package manifest files in monorepos. Read more
Source§fn should_exclude_from_analysis(path: &Path) -> bool
fn should_exclude_from_analysis(path: &Path) -> bool
Whether a file path should be excluded from BU analysis. Read more
Source§fn run_extended_analysis(
&self,
params: &ExtendedAnalysisParams,
) -> Result<TsAnalysisExtensions>
fn run_extended_analysis( &self, params: &ExtendedAnalysisParams, ) -> Result<TsAnalysisExtensions>
Run language-specific extended analysis. Read more
Source§fn finalize_extensions(
&self,
extensions: &mut Self::AnalysisExtensions,
structural_changes: Arc<Vec<StructuralChange>>,
repo: &Path,
from_ref: &str,
to_ref: &str,
) -> Arc<Vec<StructuralChange>>
fn finalize_extensions( &self, extensions: &mut Self::AnalysisExtensions, structural_changes: Arc<Vec<StructuralChange>>, repo: &Path, from_ref: &str, to_ref: &str, ) -> Arc<Vec<StructuralChange>>
Post-process extensions after both TD and extended analysis complete. Read more
Source§fn extensions_log_summary(
&self,
extensions: &Self::AnalysisExtensions,
) -> Vec<String>
fn extensions_log_summary( &self, extensions: &Self::AnalysisExtensions, ) -> Vec<String>
Return log-friendly summary lines for the extended analysis results. Read more
Source§impl LanguageSemantics<TsSymbolData> for TypeScript
impl LanguageSemantics<TsSymbolData> for TypeScript
Source§fn is_member_addition_breaking(
&self,
container: &Symbol<TsSymbolData>,
member: &Symbol<TsSymbolData>,
) -> bool
fn is_member_addition_breaking( &self, container: &Symbol<TsSymbolData>, member: &Symbol<TsSymbolData>, ) -> bool
Is adding this member to this container a breaking change? Read more
Source§fn same_family(
&self,
a: &Symbol<TsSymbolData>,
b: &Symbol<TsSymbolData>,
) -> bool
fn same_family( &self, a: &Symbol<TsSymbolData>, b: &Symbol<TsSymbolData>, ) -> bool
Are these two symbols part of the same logical family/group? Read more
Source§fn same_identity(
&self,
a: &Symbol<TsSymbolData>,
b: &Symbol<TsSymbolData>,
) -> bool
fn same_identity( &self, a: &Symbol<TsSymbolData>, b: &Symbol<TsSymbolData>, ) -> bool
Are these two symbols the same concept, possibly at different paths? Read more
Source§fn visibility_rank(&self, v: Visibility) -> u8
fn visibility_rank(&self, v: Visibility) -> u8
Numeric rank for a visibility level (higher = more visible). Read more
Source§fn parse_union_values(&self, type_str: &str) -> Option<BTreeSet<String>>
fn parse_union_values(&self, type_str: &str) -> Option<BTreeSet<String>>
Parse union/constrained type values for fine-grained diffing. Read more
Source§fn post_process(&self, changes: &mut Vec<StructuralChange>)
fn post_process(&self, changes: &mut Vec<StructuralChange>)
Post-process the change list before returning from diff_surfaces. Read more
Source§fn hierarchy(&self) -> Option<&dyn HierarchySemantics<TsSymbolData>>
fn hierarchy(&self) -> Option<&dyn HierarchySemantics<TsSymbolData>>
If this language supports component hierarchy inference (e.g., React,
Vue, Django templates), return the hierarchy semantics implementation. Read more
Source§fn renames(&self) -> Option<&dyn RenameSemantics>
fn renames(&self) -> Option<&dyn RenameSemantics>
If this language supports LLM-based rename inference (e.g., CSS
physical→logical property renames, interface rename mappings),
return the rename semantics implementation. Read more
Source§fn body_analyzer(&self) -> Option<&dyn BodyAnalysisSemantics>
fn body_analyzer(&self) -> Option<&dyn BodyAnalysisSemantics>
If this language has deterministic body-level analysis (e.g., JSX diff,
CSS variable scanning for TypeScript), return the body analysis
implementation. Read more
Source§fn primitive_type_names(&self) -> &[&str]
fn primitive_type_names(&self) -> &[&str]
Primitive type names for this language, used by the diff engine’s
structural similarity comparison. Read more
Source§fn is_async_wrapper(&self, type_str: &str) -> bool
fn is_async_wrapper(&self, type_str: &str) -> bool
Whether a return type string represents an async wrapper. Read more
Source§fn format_import_change(
&self,
symbol: &str,
old_path: &str,
new_path: &str,
) -> String
fn format_import_change( &self, symbol: &str, old_path: &str, new_path: &str, ) -> String
Format an import/use statement change hint for migration descriptions. Read more
Source§fn should_skip_symbol(&self, sym: &Symbol<TsSymbolData>) -> bool
fn should_skip_symbol(&self, sym: &Symbol<TsSymbolData>) -> bool
Should this symbol be excluded from diff analysis? Read more
Source§fn member_label(&self) -> &'static str
fn member_label(&self) -> &'static str
Human-readable label for members when building migration descriptions. Read more
Source§fn extract_rename_fallback_key(
&self,
sym: &Symbol<TsSymbolData>,
) -> Option<String>
fn extract_rename_fallback_key( &self, sym: &Symbol<TsSymbolData>, ) -> Option<String>
Extract a fallback key for rename matching from a symbol’s metadata. Read more
Source§fn canonical_name_for_relocation(&self, qualified_name: &str) -> String
fn canonical_name_for_relocation(&self, qualified_name: &str) -> String
Normalize a qualified name for relocation detection. Read more
Source§fn classify_relocation(
&self,
old_qname: &str,
new_qname: &str,
) -> Option<&'static str>
fn classify_relocation( &self, old_qname: &str, new_qname: &str, ) -> Option<&'static str>
Classify a relocation based on old and new qualified names. Read more
Source§fn derive_import_subpath(
&self,
package: Option<&str>,
qualified_name: &str,
) -> String
fn derive_import_subpath( &self, package: Option<&str>, qualified_name: &str, ) -> String
Derive the import subpath for a symbol, used in migration descriptions. Read more
Source§fn diff_language_data(
&self,
_old: &Symbol<M>,
_new: &Symbol<M>,
) -> Vec<StructuralChange>
fn diff_language_data( &self, _old: &Symbol<M>, _new: &Symbol<M>, ) -> Vec<StructuralChange>
Produce additional structural changes by diffing language-specific
metadata on two matched symbols. Read more
Source§impl MessageFormatter for TypeScript
impl MessageFormatter for TypeScript
Source§fn describe(&self, change: &StructuralChange) -> String
fn describe(&self, change: &StructuralChange) -> String
Produce a human-readable description for a structural change.
Source§impl RenameSemantics for TypeScript
impl RenameSemantics for TypeScript
Source§fn sample_removed_constants<'a>(
&self,
removed: &[&'a str],
_added: &[&'a str],
) -> Vec<&'a str>
fn sample_removed_constants<'a>( &self, removed: &[&'a str], _added: &[&'a str], ) -> Vec<&'a str>
Sample removed constants for rename pattern inference. Read more
Source§fn sample_added_constants<'a>(
&self,
_removed: &[&'a str],
added: &[&'a str],
) -> Vec<&'a str>
fn sample_added_constants<'a>( &self, _removed: &[&'a str], added: &[&'a str], ) -> Vec<&'a str>
Sample added constants for rename pattern inference. Read more
Source§fn min_removed_for_constant_inference(&self) -> usize
fn min_removed_for_constant_inference(&self) -> usize
Minimum count of removed constants to trigger rename inference.
Default: 50.
Source§fn min_removed_for_interface_inference(&self) -> usize
fn min_removed_for_interface_inference(&self) -> usize
Minimum count of removed interfaces to trigger interface rename
inference. Default: 2.
Auto Trait Implementations§
impl Freeze for TypeScript
impl RefUnwindSafe for TypeScript
impl Send for TypeScript
impl Sync for TypeScript
impl Unpin for TypeScript
impl UnsafeUnpin for TypeScript
impl UnwindSafe for TypeScript
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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>
Converts
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>
Converts
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,
Set the foreground color generically Read more
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Change the foreground color to black
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Change the background color to black
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Change the foreground color to red
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Change the background color to red
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Change the foreground color to green
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Change the background color to green
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Change the background color to yellow
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Change the foreground color to blue
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Change the background color to blue
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to purple
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Change the background color to cyan
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Change the foreground color to white
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Change the background color to white
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Make the text bold
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Make the text dim
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Make the text italicized
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Make the text underlined
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Make the text blink
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
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,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
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,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.