pub struct ModuleGraph { /* private fields */ }Implementations§
Source§impl ModuleGraph
impl ModuleGraph
pub fn get_exports_info( &self, module_identifier: &ModuleIdentifier, ) -> ExportsInfo
pub fn get_exports_info_data( &self, module_identifier: &ModuleIdentifier, ) -> &ExportsInfoData
pub fn get_exports_info_data_mut( &mut self, module_identifier: &ModuleIdentifier, ) -> &mut ExportsInfoData
pub fn get_prefetched_exports_info_optional<'b>( &'b self, module_identifier: &ModuleIdentifier, mode: PrefetchExportsInfoMode<'b>, ) -> Option<PrefetchedExportsInfoWrapper<'b>>
pub fn get_prefetched_exports_info<'b>( &'b self, module_identifier: &ModuleIdentifier, mode: PrefetchExportsInfoMode<'b>, ) -> PrefetchedExportsInfoWrapper<'b>
pub fn get_prefetched_exports_info_used( &self, module_identifier: &ModuleIdentifier, runtime: Option<&RuntimeSpec>, ) -> PrefetchedExportsInfoUsed
pub fn get_exports_info_by_id(&self, id: &ExportsInfo) -> &ExportsInfoData
pub fn get_exports_info_mut_by_id( &mut self, id: &ExportsInfo, ) -> &mut ExportsInfoData
pub fn set_exports_info(&mut self, id: ExportsInfo, info: ExportsInfoData)
pub fn active_all_exports_info(&mut self)
pub fn reset_all_exports_info_used(&mut self)
Source§impl ModuleGraph
impl ModuleGraph
pub fn checkpoint(&mut self)
pub fn reset(&mut self)
Source§impl ModuleGraph
impl ModuleGraph
Sourcepub fn modules(&self) -> IdentifierMap<&BoxModule>
pub fn modules(&self) -> IdentifierMap<&BoxModule>
Return an unordered iterator of modules
pub fn module_graph_modules(&self) -> IdentifierMap<&ModuleGraphModule>
pub fn get_outcoming_connections_by_module( &self, module_id: &ModuleIdentifier, ) -> HashMap<ModuleIdentifier, Vec<&ModuleGraphConnection>>
pub fn get_active_outcoming_connections_by_module( &self, module_id: &ModuleIdentifier, runtime: Option<&RuntimeSpec>, module_graph: &ModuleGraph, module_graph_cache: &ModuleGraphCacheArtifact, ) -> HashMap<ModuleIdentifier, Vec<&ModuleGraphConnection>>
pub fn get_incoming_connections_by_origin_module( &self, module_id: &ModuleIdentifier, ) -> HashMap<Option<ModuleIdentifier>, Vec<&ModuleGraphConnection>>
Sourcepub fn revoke_dependency(
&mut self,
dep_id: &DependencyId,
force: bool,
) -> Option<BuildDependency>
pub fn revoke_dependency( &mut self, dep_id: &DependencyId, force: bool, ) -> Option<BuildDependency>
Remove dependency in mgm and target connection, return dependency_id and origin module identifier
force will completely remove dependency, and you will not regenerate it from dependency_id
pub fn revoke_module( &mut self, module_id: &ModuleIdentifier, ) -> Vec<BuildDependency> ⓘ
pub fn add_module_graph_module( &mut self, module_graph_module: ModuleGraphModule, )
Sourcepub fn clone_module_attributes(
compilation: &mut Compilation,
source_module: &ModuleIdentifier,
target_module: &ModuleIdentifier,
)
pub fn clone_module_attributes( compilation: &mut Compilation, source_module: &ModuleIdentifier, target_module: &ModuleIdentifier, )
Make sure both source and target module are exists in module graph
pub fn move_module_connections( &mut self, old_module: &ModuleIdentifier, new_module: &ModuleIdentifier, filter_connection: impl Fn(&ModuleGraphConnection, &Box<dyn Dependency>) -> bool, )
pub fn copy_outgoing_module_connections<F>( &mut self, old_module: &ModuleIdentifier, new_module: &ModuleIdentifier, filter_connection: F, )
pub fn get_depth(&self, module_id: &ModuleIdentifier) -> Option<usize>
pub fn set_depth_if_lower( &mut self, module_id: &ModuleIdentifier, depth: usize, ) -> bool
pub fn add_module(&mut self, module: BoxModule)
pub fn add_block(&mut self, block: Box<AsyncDependenciesBlock>)
pub fn set_parents( &mut self, dependency_id: DependencyId, parents: DependencyParents, )
pub fn get_parent_module( &self, dependency_id: &DependencyId, ) -> Option<&ModuleIdentifier>
pub fn get_parent_block( &self, dependency_id: &DependencyId, ) -> Option<&AsyncDependenciesBlockIdentifier>
pub fn get_parent_block_index( &self, dependency_id: &DependencyId, ) -> Option<usize>
pub fn block_by_id( &self, block_id: &AsyncDependenciesBlockIdentifier, ) -> Option<&AsyncDependenciesBlock>
pub fn block_by_id_expect( &self, block_id: &AsyncDependenciesBlockIdentifier, ) -> &AsyncDependenciesBlock
pub fn blocks( &self, ) -> &HashMap<AsyncDependenciesBlockIdentifier, Box<AsyncDependenciesBlock>>
pub fn dependencies(&self) -> HashMap<DependencyId, &BoxDependency>
pub fn add_dependency(&mut self, dependency: BoxDependency)
Sourcepub fn dependency_by_id(&self, dependency_id: &DependencyId) -> &BoxDependency
pub fn dependency_by_id(&self, dependency_id: &DependencyId) -> &BoxDependency
Get a dependency by ID, panicking if not found.
PREFERRED METHOD: Use this for ALL internal Rust code including:
- Core compilation logic
- All plugins (
rspack_plugin_*) - Stats generation, code generation, runtime templates
- Chunk graph building, export analysis
- Module graph building operations
- Any internal operations where dependencies should exist
Dependencies should always be accessible in internal operations, so this method enforces that invariant with a clear panic message if violated.
Only the binding layer (rspack_binding_api) should use internal::try_dependency_by_id()
for graceful handling of missing dependencies in external APIs.
Sourcepub fn dependency_by_id_mut(
&mut self,
dependency_id: &DependencyId,
) -> &mut BoxDependency
pub fn dependency_by_id_mut( &mut self, dependency_id: &DependencyId, ) -> &mut BoxDependency
Get a mutable dependency by ID, panicking if not found.
PREFERRED METHOD: Use this for ALL internal Rust code when you need to modify dependencies. Dependencies should always be accessible in internal operations, so this method enforces that invariant with a clear panic message.
Sourcepub fn module_graph_module_by_dependency_id(
&self,
id: &DependencyId,
) -> Option<&ModuleGraphModule>
pub fn module_graph_module_by_dependency_id( &self, id: &DependencyId, ) -> Option<&ModuleGraphModule>
Uniquely identify a module by its dependency
pub fn module_identifier_by_dependency_id( &self, dep_id: &DependencyId, ) -> Option<&ModuleIdentifier>
pub fn get_module_by_dependency_id( &self, dep_id: &DependencyId, ) -> Option<&BoxModule>
Sourcepub fn set_resolved_module(
&mut self,
original_module_identifier: Option<ModuleIdentifier>,
dependency_id: DependencyId,
module_identifier: ModuleIdentifier,
) -> Result<()>
pub fn set_resolved_module( &mut self, original_module_identifier: Option<ModuleIdentifier>, dependency_id: DependencyId, module_identifier: ModuleIdentifier, ) -> Result<()>
Add a connection between two module graph modules, if a connection exists, then it will be reused.
Sourcepub fn module_by_identifier(
&self,
identifier: &ModuleIdentifier,
) -> Option<&BoxModule>
pub fn module_by_identifier( &self, identifier: &ModuleIdentifier, ) -> Option<&BoxModule>
Uniquely identify a module by its identifier and return the aliased reference
pub fn module_by_identifier_mut( &mut self, identifier: &ModuleIdentifier, ) -> Option<&mut BoxModule>
Sourcepub fn module_graph_module_by_identifier(
&self,
identifier: &ModuleIdentifier,
) -> Option<&ModuleGraphModule>
pub fn module_graph_module_by_identifier( &self, identifier: &ModuleIdentifier, ) -> Option<&ModuleGraphModule>
Uniquely identify a module graph module by its module’s identifier and return the aliased reference
Sourcepub fn module_graph_module_by_identifier_mut(
&mut self,
identifier: &ModuleIdentifier,
) -> &mut ModuleGraphModule
pub fn module_graph_module_by_identifier_mut( &mut self, identifier: &ModuleIdentifier, ) -> &mut ModuleGraphModule
Get a mutable module graph module by identifier, panicking if not found.
PREFERRED METHOD: Use this for all internal code where the module graph module should exist. This enforces the invariant with a clear panic message if violated.
Only use try_module_graph_module_by_identifier_mut() when you need to handle missing modules.
pub fn get_ordered_outgoing_connections( &self, module_identifier: &ModuleIdentifier, ) -> impl Iterator<Item = &ModuleGraphConnection>
pub fn get_outgoing_deps_in_order( &self, module_identifier: &ModuleIdentifier, ) -> impl Iterator<Item = &DependencyId>
pub fn connection_by_dependency_id( &self, dependency_id: &DependencyId, ) -> Option<&ModuleGraphConnection>
pub fn connection_by_dependency_id_mut( &mut self, dependency_id: &DependencyId, ) -> Option<&mut ModuleGraphConnection>
pub fn get_pre_order_index(&self, module_id: &ModuleIdentifier) -> Option<u32>
pub fn get_post_order_index(&self, module_id: &ModuleIdentifier) -> Option<u32>
pub fn get_issuer(&self, module_id: &ModuleIdentifier) -> Option<&BoxModule>
pub fn is_optional( &self, module_id: &ModuleIdentifier, module_graph_cache: &ModuleGraphCacheArtifact, ) -> bool
pub fn is_async( async_modules_artifact: &AsyncModulesArtifact, module_id: &ModuleIdentifier, ) -> bool
pub fn is_deferred( &self, imported_by_defer_modules_artifact: &ImportedByDeferModulesArtifact, module_id: &ModuleIdentifier, ) -> bool
pub fn set_async( async_modules_artifact: &mut AsyncModulesArtifact, module_id: ModuleIdentifier, is_async: bool, ) -> bool
pub fn get_outgoing_connections( &self, module_id: &ModuleIdentifier, ) -> impl Iterator<Item = &ModuleGraphConnection> + Clone
pub fn get_incoming_connections( &self, module_id: &ModuleIdentifier, ) -> impl Iterator<Item = &ModuleGraphConnection> + Clone
pub fn get_module_hash( &self, module_id: &ModuleIdentifier, ) -> Option<&RspackHashDigest>
Sourcepub fn get_dep_meta_if_existing(
&self,
id: &DependencyId,
) -> Option<&DependencyExtraMeta>
pub fn get_dep_meta_if_existing( &self, id: &DependencyId, ) -> Option<&DependencyExtraMeta>
We can’t insert all sort of things into one hashmap like javascript, so we create different hashmap to store different kinds of meta.
pub fn set_dependency_extra_meta( &mut self, dep_id: DependencyId, extra: DependencyExtraMeta, )
pub fn can_update_module( &self, dep_id: &DependencyId, module_id: &ModuleIdentifier, ) -> bool
pub fn do_update_module( &mut self, dep_id: &DependencyId, module_id: &ModuleIdentifier, )
pub fn get_optimization_bailout_mut( &mut self, id: &ModuleIdentifier, ) -> &mut Vec<String>
pub fn get_optimization_bailout(&self, id: &ModuleIdentifier) -> &Vec<String>
pub fn get_condition_state( &self, connection: &ModuleGraphConnection, runtime: Option<&RuntimeSpec>, module_graph_cache: &ModuleGraphCacheArtifact, ) -> ConnectionState
pub fn cache_recovery_connection(&mut self, connection: ModuleGraphConnection)
pub fn batch_set_connections_original_module( &mut self, tasks: Vec<(DependencyId, ModuleIdentifier)>, )
pub fn batch_set_connections_module( &mut self, tasks: Vec<(DependencyId, ModuleIdentifier)>, )
pub fn batch_add_connections( &mut self, tasks: Vec<(ModuleIdentifier, Vec<DependencyId>, Vec<DependencyId>)>, )
pub fn batch_remove_connections( &mut self, tasks: Vec<(ModuleIdentifier, Vec<DependencyId>, Vec<DependencyId>)>, )
pub fn batch_set_export_info_used_name( &mut self, tasks: Vec<(ExportInfo, UsedNameItem)>, )
Trait Implementations§
Source§impl Debug for ModuleGraph
impl Debug for ModuleGraph
Source§impl Default for ModuleGraph
impl Default for ModuleGraph
Source§fn default() -> ModuleGraph
fn default() -> ModuleGraph
Auto Trait Implementations§
impl Freeze for ModuleGraph
impl !RefUnwindSafe for ModuleGraph
impl Send for ModuleGraph
impl Sync for ModuleGraph
impl Unpin for ModuleGraph
impl !UnwindSafe for ModuleGraph
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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<T> IntoTWithDiagnosticArray for Twhere
T: Debug,
impl<T> IntoTWithDiagnosticArray for Twhere
T: Debug,
fn with_diagnostic(self, diagnostic: Vec<Diagnostic>) -> TWithDiagnosticArray<T>where
T: Debug,
fn with_empty_diagnostic(self) -> TWithDiagnosticArray<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§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 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>
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>
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>
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>
Source§fn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
fn if_supports_color<'a, Out, ApplyFn>(
&'a self,
stream: impl Into<Stream>,
apply: ApplyFn,
) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where
ApplyFn: Fn(&'a Self) -> Out,
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.