pub struct DebugInfo { /* private fields */ }Expand description
Debug information for a MAST forest, containing decorators and error messages.
Implementations§
Source§impl DebugInfo
impl DebugInfo
Sourcepub fn with_capacity(
decorators_capacity: usize,
nodes_capacity: usize,
operations_capacity: usize,
decorator_ids_capacity: usize,
) -> DebugInfo
pub fn with_capacity( decorators_capacity: usize, nodes_capacity: usize, operations_capacity: usize, decorator_ids_capacity: usize, ) -> DebugInfo
Creates an empty DebugInfo with specified capacities.
Sourcepub fn empty_for_nodes(num_nodes: usize) -> DebugInfo
pub fn empty_for_nodes(num_nodes: usize) -> DebugInfo
Creates an empty DebugInfo with valid CSR structures for N nodes.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this DebugInfo has no decorators, asm_ops, debug vars, error codes, or procedure names.
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Strips all debug information, removing decorators, asm_ops, debug vars, error codes, and procedure names.
This is used for release builds where debug info is not needed.
Sourcepub fn num_decorators(&self) -> usize
pub fn num_decorators(&self) -> usize
Returns the number of decorators.
Sourcepub fn decorators(&self) -> &[Decorator]
pub fn decorators(&self) -> &[Decorator]
Returns all decorators as a slice.
Sourcepub fn decorator(&self, decorator_id: DecoratorId) -> Option<&Decorator>
pub fn decorator(&self, decorator_id: DecoratorId) -> Option<&Decorator>
Returns the decorator with the given ID, if it exists.
Sourcepub fn before_enter_decorators(&self, node_id: MastNodeId) -> &[DecoratorId]
pub fn before_enter_decorators(&self, node_id: MastNodeId) -> &[DecoratorId]
Returns the before-enter decorators for the given node.
Sourcepub fn after_exit_decorators(&self, node_id: MastNodeId) -> &[DecoratorId]
pub fn after_exit_decorators(&self, node_id: MastNodeId) -> &[DecoratorId]
Returns the after-exit decorators for the given node.
Sourcepub fn decorators_for_operation(
&self,
node_id: MastNodeId,
local_op_idx: usize,
) -> &[DecoratorId]
pub fn decorators_for_operation( &self, node_id: MastNodeId, local_op_idx: usize, ) -> &[DecoratorId]
Returns decorators for a specific operation within a node.
Sourcepub fn num_debug_vars(&self) -> usize
pub fn num_debug_vars(&self) -> usize
Returns the number of debug variables.
Sourcepub fn debug_vars(&self) -> &[DebugVarInfo]
pub fn debug_vars(&self) -> &[DebugVarInfo]
Returns all debug variables as a slice.
Sourcepub fn debug_var(&self, debug_var_id: DebugVarId) -> Option<&DebugVarInfo>
pub fn debug_var(&self, debug_var_id: DebugVarId) -> Option<&DebugVarInfo>
Returns the debug variable with the given ID, if it exists.
Sourcepub fn debug_vars_for_node(
&self,
node_id: MastNodeId,
) -> Vec<(usize, DebugVarId)>
pub fn debug_vars_for_node( &self, node_id: MastNodeId, ) -> Vec<(usize, DebugVarId)>
Returns all (op_idx, DebugVarId) pairs for the given node, or an empty vec if the
node has no debug vars.
Sourcepub fn debug_vars_for_operation(
&self,
node_id: MastNodeId,
local_op_idx: usize,
) -> &[DebugVarId]
pub fn debug_vars_for_operation( &self, node_id: MastNodeId, local_op_idx: usize, ) -> &[DebugVarId]
Returns debug variable IDs for a specific operation within a node.
Sourcepub fn add_decorator(
&mut self,
decorator: Decorator,
) -> Result<DecoratorId, MastForestError>
pub fn add_decorator( &mut self, decorator: Decorator, ) -> Result<DecoratorId, MastForestError>
Adds a decorator and returns its ID.
Sourcepub fn clear_mappings(&mut self)
pub fn clear_mappings(&mut self)
Clears all decorator information while preserving error codes.
This is used when rebuilding decorator information from nodes.
Sourcepub fn num_asm_ops(&self) -> usize
pub fn num_asm_ops(&self) -> usize
Returns the number of AssemblyOps.
Sourcepub fn asm_ops(&self) -> &[AssemblyOp]
pub fn asm_ops(&self) -> &[AssemblyOp]
Returns all AssemblyOps as a slice.
Sourcepub fn asm_op(&self, asm_op_id: AsmOpId) -> Option<&AssemblyOp>
pub fn asm_op(&self, asm_op_id: AsmOpId) -> Option<&AssemblyOp>
Returns the AssemblyOp with the given ID, if it exists.
Sourcepub fn asm_op_for_operation(
&self,
node_id: MastNodeId,
op_idx: usize,
) -> Option<&AssemblyOp>
pub fn asm_op_for_operation( &self, node_id: MastNodeId, op_idx: usize, ) -> Option<&AssemblyOp>
Returns the AssemblyOp for a specific operation within a node, if any.
Sourcepub fn first_asm_op_for_node(&self, node_id: MastNodeId) -> Option<&AssemblyOp>
pub fn first_asm_op_for_node(&self, node_id: MastNodeId) -> Option<&AssemblyOp>
Returns the first AssemblyOp for a node, if any.
Sourcepub fn asm_ops_for_node(&self, node_id: MastNodeId) -> Vec<(usize, AsmOpId)>
pub fn asm_ops_for_node(&self, node_id: MastNodeId) -> Vec<(usize, AsmOpId)>
Returns all (op_idx, AsmOpId) pairs for the given node.
Sourcepub fn add_asm_op(
&mut self,
asm_op: AssemblyOp,
) -> Result<AsmOpId, MastForestError>
pub fn add_asm_op( &mut self, asm_op: AssemblyOp, ) -> Result<AsmOpId, MastForestError>
Adds an AssemblyOp and returns its ID.
Sourcepub fn rewrite_source_locations(
&mut self,
rewrite_location: impl FnMut(Location) -> Location,
rewrite_file_line_col: impl FnMut(FileLineCol) -> FileLineCol,
)
pub fn rewrite_source_locations( &mut self, rewrite_location: impl FnMut(Location) -> Location, rewrite_file_line_col: impl FnMut(FileLineCol) -> FileLineCol, )
Rewrites the source-backed locations stored in this debug info.
Sourcepub fn register_asm_ops(
&mut self,
node_id: MastNodeId,
num_operations: usize,
asm_ops: Vec<(usize, AsmOpId)>,
) -> Result<(), AsmOpIndexError>
pub fn register_asm_ops( &mut self, node_id: MastNodeId, num_operations: usize, asm_ops: Vec<(usize, AsmOpId)>, ) -> Result<(), AsmOpIndexError>
Registers operation-indexed AssemblyOps for a node.
The num_operations parameter must be the total number of operations in the node. This is
needed to allocate enough space for all operations, even those without AssemblyOps, so that
lookups at any valid operation index will work correctly.
Sourcepub fn add_debug_var(
&mut self,
debug_var: DebugVarInfo,
) -> Result<DebugVarId, MastForestError>
pub fn add_debug_var( &mut self, debug_var: DebugVarInfo, ) -> Result<DebugVarId, MastForestError>
Adds a debug variable and returns its ID.
Sourcepub fn register_op_indexed_debug_vars(
&mut self,
node_id: MastNodeId,
debug_vars_info: Vec<(usize, DebugVarId)>,
) -> Result<(), DecoratorIndexError>
pub fn register_op_indexed_debug_vars( &mut self, node_id: MastNodeId, debug_vars_info: Vec<(usize, DebugVarId)>, ) -> Result<(), DecoratorIndexError>
Registers operation-indexed debug variables for a node.
This associates already-added debug variables with specific operations within a node.
Sourcepub fn error_codes(&self) -> impl Iterator<Item = (&u64, &Arc<str>)>
pub fn error_codes(&self) -> impl Iterator<Item = (&u64, &Arc<str>)>
Returns an iterator over error codes.
Sourcepub fn insert_error_code(&mut self, code: u64, msg: Arc<str>)
pub fn insert_error_code(&mut self, code: u64, msg: Arc<str>)
Inserts an error code with its message.
Sourcepub fn extend_error_codes<I>(&mut self, error_codes: I)
pub fn extend_error_codes<I>(&mut self, error_codes: I)
Inserts multiple error codes at once.
This is used when bulk error code insertion is needed.
Sourcepub fn clear_error_codes(&mut self)
pub fn clear_error_codes(&mut self)
Clears all error codes.
This is used when error code information needs to be reset.
Sourcepub fn procedure_name(&self, digest: &Word) -> Option<&str>
pub fn procedure_name(&self, digest: &Word) -> Option<&str>
Returns the procedure name for the given MAST root digest, if present.
Sourcepub fn procedure_names(&self) -> impl Iterator<Item = (Word, &Arc<str>)>
pub fn procedure_names(&self) -> impl Iterator<Item = (Word, &Arc<str>)>
Returns an iterator over all (digest, name) pairs.
Sourcepub fn num_procedure_names(&self) -> usize
pub fn num_procedure_names(&self) -> usize
Returns the number of procedure names.
Sourcepub fn insert_procedure_name(&mut self, digest: Word, name: Arc<str>)
pub fn insert_procedure_name(&mut self, digest: Word, name: Arc<str>)
Inserts a procedure name for the given MAST root digest.
Sourcepub fn extend_procedure_names<I>(&mut self, names: I)
pub fn extend_procedure_names<I>(&mut self, names: I)
Inserts multiple procedure names at once.
Sourcepub fn clear_procedure_names(&mut self)
pub fn clear_procedure_names(&mut self)
Clears all procedure names.
Trait Implementations§
Source§impl Deserializable for DebugInfo
impl Deserializable for DebugInfo
Source§fn read_from<R>(source: &mut R) -> Result<DebugInfo, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<DebugInfo, DeserializationError>where
R: ByteReader,
source, attempts to deserialize these bytes
into Self, and returns the result. Read moreSource§fn min_serialized_size() -> usize
fn min_serialized_size() -> usize
Source§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
Source§fn read_from_bytes_with_budget(
bytes: &[u8],
budget: usize,
) -> Result<Self, DeserializationError>
fn read_from_bytes_with_budget( bytes: &[u8], budget: usize, ) -> Result<Self, DeserializationError>
Self from bytes with a byte budget limit. Read moreSource§impl<'de> Deserialize<'de> for DebugInfo
impl<'de> Deserialize<'de> for DebugInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DebugInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DebugInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DebugInfo
Source§impl Serializable for DebugInfo
impl Serializable for DebugInfo
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
self into bytes and writes these bytes into the target.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Source§impl Serialize for DebugInfo
impl Serialize for DebugInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DebugInfo
Auto Trait Implementations§
impl Freeze for DebugInfo
impl RefUnwindSafe for DebugInfo
impl Send for DebugInfo
impl Sync for DebugInfo
impl Unpin for DebugInfo
impl UnsafeUnpin for DebugInfo
impl UnwindSafe for DebugInfo
Blanket Implementations§
impl<T> AttributeValue for Twhere
T: AsAny + CloneToUninit,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<From, To, Obj> DowncastFrom<From, Obj> for To
impl<From, To, Obj> DowncastFrom<From, Obj> for To
Source§impl<From, To> DowncastFromRef<From> for To
impl<From, To> DowncastFromRef<From> for To
Source§impl<From, To> DowncastRef<To> for From
impl<From, To> DowncastRef<To> for From
fn downcast_ref(&self) -> Option<&To>
fn downcast_mut(&mut self) -> Option<&mut To>
Source§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
default fn dyn_eq(&self, rhs: &dyn PartialEqable) -> bool
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<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§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 moreimpl<Trait, T> Is<Trait> for T
impl<T, Trait> IsObjOf<T> for Trait
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§impl<T> PartialEqable for T
impl<T> PartialEqable for T
Source§impl<T> PassTarget for Twhere
T: 'static,
impl<T> PassTarget for Twhere
T: 'static,
default fn target_name(_context: &Context) -> Option<OperationName>
default fn into_target( op: &RawEntityRef<Operation, IntrusiveLink>, ) -> EntityRef<'_, T>
default fn into_target_mut( op: &mut RawEntityRef<Operation, IntrusiveLink>, ) -> EntityMut<'_, T>
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> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.Source§impl<From, To, Obj> TryUpcastFrom<From, Obj> for To
impl<From, To, Obj> TryUpcastFrom<From, Obj> for To
Source§impl<From, To> TryUpcastFromRef<From> for To
impl<From, To> TryUpcastFromRef<From> for To
Source§impl<From, To> TryUpcastRef<To> for From
impl<From, To> TryUpcastRef<To> for From
Source§impl<From, To> UpcastFrom<From> for To
impl<From, To> UpcastFrom<From> for To
fn upcast_from_ref(from: &From) -> &To
fn upcast_from_mut(from: &mut From) -> &mut To
fn upcast_from(from: Box<From>) -> Box<To>
Source§impl<T, Trait> Verifier<Trait> for Twhere
Trait: ?Sized,
impl<T, Trait> Verifier<Trait> for Twhere
Trait: ?Sized,
Source§const VACUOUS: bool = true
const VACUOUS: bool = true
Verifier sets this flag to true when its implementation is vacuous,
i.e. it always succeeds and is not dependent on runtime context. Read moreSource§default fn should_verify(&self, _context: &Context) -> bool
default fn should_verify(&self, _context: &Context) -> bool
Source§default fn maybe_verify(&self, _context: &Context) -> Result<(), Report>
default fn maybe_verify(&self, _context: &Context) -> Result<(), Report>
true