pub enum Token {
Show 71 variants
Abyte(Expr, Vec<Expr>),
Align(Expr, Option<Expr>),
AssemblerControl(StandardAssemblerControlCommand),
Assert(Expr, Option<Vec<FormattedExpr>>),
Assign {
label: SmolStr,
expr: Expr,
op: Option<BinaryOperation>,
},
Bank(Option<Expr>),
Bankset(Expr),
Basic(Option<Vec<SmolStr>>, Option<Vec<Expr>>, String),
Break,
Breakpoint {
address: Option<Expr>,
type: Option<RemuBreakPointType>,
access: Option<RemuBreakPointAccessMode>,
run: Option<RemuBreakPointRunMode>,
mask: Option<Expr>,
size: Option<Expr>,
value: Option<Expr>,
value_mask: Option<Expr>,
condition: Option<Expr>,
name: Option<Expr>,
step: Option<Expr>,
},
BuildCpr,
BuildSna(Option<SnapshotVersion>),
Charset(CharsetFormat),
Comment(String),
CrunchedBinary(CrunchType, SmolStr),
CrunchedSection(CrunchType, BaseListing<Token>),
Defb(Vec<Expr>),
Defs(Vec<(Expr, Option<Expr>)>),
Defw(Vec<Expr>),
End,
Equ {
label: SmolStr,
expr: Expr,
},
Export(Vec<SmolStr>),
Fail(Option<Vec<FormattedExpr>>),
Field {
label: SmolStr,
expr: Expr,
},
For {
label: SmolStr,
start: Expr,
stop: Expr,
step: Option<Expr>,
listing: BaseListing<Token>,
},
Function(SmolStr, Vec<SmolStr>, BaseListing<Token>),
If(Vec<(TestKind, BaseListing<Token>)>, Option<BaseListing<Token>>),
Incbin {
fname: Expr,
offset: Option<Expr>,
length: Option<Expr>,
extended_offset: Option<Expr>,
off: bool,
transformation: BinaryTransformation,
},
Include(Expr, Option<SmolStr>, bool),
Iterate(SmolStr, Either<Vec<Expr>, Expr>, BaseListing<Token>),
Label(SmolStr),
Let(SmolStr, Expr),
Limit(Expr),
List,
Macro {
name: SmolStr,
params: Vec<SmolStr>,
content: String,
flavor: AssemblerFlavor,
},
MacroCall(SmolStr, Vec<MacroParam>),
Map(Expr),
Module(SmolStr, BaseListing<Token>),
MultiPop(Vec<DataAccess>),
MultiPush(Vec<DataAccess>),
Next {
label: SmolStr,
source: SmolStr,
expr: Option<Expr>,
},
NoExport(Vec<SmolStr>),
NoList,
OpCode(Mnemonic, Option<DataAccess>, Option<DataAccess>, Option<Register8>),
Org {
val1: Expr,
val2: Option<Expr>,
},
Pause,
Print(Vec<FormattedExpr>),
Protect(Expr, Expr),
Range(String, Expr, Expr),
Repeat(Expr, BaseListing<Token>, Option<SmolStr>, Option<Expr>),
RepeatToken {
token: Box<Token>,
repeat: Expr,
},
RepeatUntil(Expr, BaseListing<Token>),
Return(Expr),
Rorg(Expr, BaseListing<Token>),
Run(Expr, Option<Expr>),
Save {
filename: Expr,
address: Option<Expr>,
size: Option<Expr>,
save_type: Option<SaveType>,
dsk_filename: Option<Expr>,
side: Option<Expr>,
},
Section(SmolStr),
SetCPC(Expr),
SetCrtc(Expr),
SetN {
label: SmolStr,
source: SmolStr,
expr: Option<Expr>,
},
Skip(Expr),
SnaInit(Expr),
SnaSet(SnapshotFlag, FlagValue),
StableTicker(StableTickerAction<SmolStr>),
StartingIndex {
start: Option<Expr>,
step: Option<Expr>,
},
Str(Vec<Expr>),
Struct(SmolStr, Vec<(SmolStr, Token)>),
Switch(Expr, Vec<(Expr, BaseListing<Token>, bool)>, Option<BaseListing<Token>>),
Undef(SmolStr),
WaitNops(Expr),
While(Expr, BaseListing<Token>),
}Expand description
The embeded Listing can be of several kind (with the token or with decorated version of the token)
Variants§
Abyte(Expr, Vec<Expr>)
Align(Expr, Option<Expr>)
AssemblerControl(StandardAssemblerControlCommand)
Assert(Expr, Option<Vec<FormattedExpr>>)
Assign
Bank(Option<Expr>)
Configure the bank - completely incompatible with rasm behavior The expression corresponds to the GATE ARRAY value to select the bank of interest
Bankset(Expr)
Basic(Option<Vec<SmolStr>>, Option<Vec<Expr>>, String)
Basic code which tokens will be included in the code (imported variables, lines to hide, code)
Break
Breakpoint
Fields
type: Option<RemuBreakPointType>access: Option<RemuBreakPointAccessMode>run: Option<RemuBreakPointRunMode>BuildCpr
BuildSna(Option<SnapshotVersion>)
Charset(CharsetFormat)
Comment(String)
CrunchedBinary(CrunchType, SmolStr)
CrunchedSection(CrunchType, BaseListing<Token>)
Defb(Vec<Expr>)
Defs(Vec<(Expr, Option<Expr>)>)
Defw(Vec<Expr>)
End
Equ
Export(Vec<SmolStr>)
Fail(Option<Vec<FormattedExpr>>)
Field
For
Function(SmolStr, Vec<SmolStr>, BaseListing<Token>)
Function embeds a listing with a limited number of possible instructions and return a value
If(Vec<(TestKind, BaseListing<Token>)>, Option<BaseListing<Token>>)
Conditional expression. _0 contains all the expression and the appropriate code, _1 contains the else case
Incbin
Include of an asm file _0 contains the name of the file, _1 contains the content of the file. It is not loaded at the creation of the Token because there is not enough context to know where to load file
Fields
transformation: BinaryTransformationInclude(Expr, Option<SmolStr>, bool)
Iterate(SmolStr, Either<Vec<Expr>, Expr>, BaseListing<Token>)
Label(SmolStr)
Let(SmolStr, Expr)
Limit(Expr)
List
Macro
MacroCall(SmolStr, Vec<MacroParam>)
Map(Expr)
Module(SmolStr, BaseListing<Token>)
MultiPop(Vec<DataAccess>)
MultiPush(Vec<DataAccess>)
Next
NoExport(Vec<SmolStr>)
NoList
OpCode(Mnemonic, Option<DataAccess>, Option<DataAccess>, Option<Register8>)
Very last argument concerns only few undocumented instructions that save their results in a register
Org
Pause
Print(Vec<FormattedExpr>)
Protect(Expr, Expr)
Range(String, Expr, Expr)
Define a named section in the current page
Repeat(Expr, BaseListing<Token>, Option<SmolStr>, Option<Expr>)
Duplicate the token stream
RepeatToken
RepeatUntil(Expr, BaseListing<Token>)
Return(Expr)
Return value from a function
Rorg(Expr, BaseListing<Token>)
Set the value of $ to Expr
Run(Expr, Option<Expr>)
Save
Fields
Section(SmolStr)
SetCPC(Expr)
SetCrtc(Expr)
SetN
Skip(Expr)
SnaInit(Expr)
This directive setup a value for a given flag of the snapshot
SnaSet(SnapshotFlag, FlagValue)
StableTicker(StableTickerAction<SmolStr>)
StartingIndex
Str(Vec<Expr>)
Struct(SmolStr, Vec<(SmolStr, Token)>)
Switch(Expr, Vec<(Expr, BaseListing<Token>, bool)>, Option<BaseListing<Token>>)
Undef(SmolStr)
WaitNops(Expr)
While(Expr, BaseListing<Token>)
Implementations§
Source§impl Token
impl Token
pub fn new_opcode( mne: Mnemonic, arg1: Option<DataAccess>, arg2: Option<DataAccess>, ) -> Token
Sourcepub fn fix_relative_jumps_after_disassembling(&mut self)
pub fn fix_relative_jumps_after_disassembling(&mut self)
When diassembling code, the token with relative information are not appropriate
pub fn is_opcode(&self) -> bool
pub fn is_output_opcode(&self) -> bool
pub fn is_input_opcode(&self) -> bool
pub fn is_retlike_opcode(&self) -> bool
Sourcepub fn is_autocopy_opcode(&self) -> bool
pub fn is_autocopy_opcode(&self) -> bool
Check if it is an undocumented instruction that makes a copy of the data to save in an additional register
pub fn label(&self) -> Option<&str>
pub fn is_label(&self) -> bool
pub fn macro_name(&self) -> Option<&str>
pub fn macro_arguments(&self) -> Option<&[SmolStr]>
pub fn macro_content(&self) -> Option<&str>
Sourcepub fn org_expr(&self) -> Option<&Expr>
👎Deprecated since 0.1.1: please use expr instead as other token need it
pub fn org_expr(&self) -> Option<&Expr>
expr instead as other token need itRename the @labels in macros XXX no more needed - to remove later
pub fn expr(&self) -> Option<&Expr>
Sourcepub fn has_at_least_one_listing(&self) -> bool
pub fn has_at_least_one_listing(&self) -> bool
Return true for directives that can emebed some listing information
Trait Implementations§
Source§impl From<&Token> for DbLikeKind
impl From<&Token> for DbLikeKind
Source§impl ListingElement for Token
impl ListingElement for Token
type AssemblerControlCommand = StandardAssemblerControlCommand
type DataAccess = DataAccess
type Expr = Expr
type MacroParam = MacroParam
type TestKind = TestKind
fn is_run(&self) -> bool
fn is_repeat_token(&self) -> bool
fn repeat_token(&self) -> &Token
fn is_save(&self) -> bool
fn is_breakpoint(&self) -> bool
fn run_expr(&self) -> &<Token as ListingElement>::Expr
fn equ_symbol(&self) -> &str
fn rorg_expr(&self) -> &<Token as ListingElement>::Expr
fn equ_value(&self) -> &<Token as ListingElement>::Expr
fn assign_symbol(&self) -> &str
fn module_name(&self) -> &str
fn mnemonic(&self) -> Option<&Mnemonic>
fn mnemonic_arg2(&self) -> Option<&<Token as ListingElement>::DataAccess>
fn mnemonic_arg1_mut( &mut self, ) -> Option<&mut <Token as ListingElement>::DataAccess>
fn iterate_counter_name(&self) -> &str
fn iterate_values( &self, ) -> Either<&Vec<<Token as ListingElement>::Expr>, &<Token as ListingElement>::Expr> ⓘ
fn mnemonic_arg2_mut( &mut self, ) -> Option<&mut <Token as ListingElement>::DataAccess>
fn while_expr(&self) -> &<Token as ListingElement>::Expr
fn assign_value(&self) -> &<Token as ListingElement>::Expr
fn is_switch(&self) -> bool
fn is_if(&self) -> bool
fn is_repeat(&self) -> bool
fn is_for(&self) -> bool
fn is_directive(&self) -> bool
fn is_module(&self) -> bool
fn is_while(&self) -> bool
fn is_iterate(&self) -> bool
fn is_repeat_until(&self) -> bool
fn is_include(&self) -> bool
fn is_incbin(&self) -> bool
fn is_call_macro_or_build_struct(&self) -> bool
fn is_function_definition(&self) -> bool
fn is_crunched_section(&self) -> bool
fn is_rorg(&self) -> bool
fn is_db(&self) -> bool
fn is_dw(&self) -> bool
fn is_str(&self) -> bool
fn is_set(&self) -> bool
fn is_buildcpr(&self) -> bool
fn is_assembler_control(&self) -> bool
fn is_assert(&self) -> bool
fn is_assign(&self) -> bool
fn is_comment(&self) -> bool
fn is_equ(&self) -> bool
fn is_label(&self) -> bool
fn is_org(&self) -> bool
fn org_first(&self) -> &<Token as ListingElement>::Expr
fn org_second(&self) -> Option<&<Token as ListingElement>::Expr>
fn is_print(&self) -> bool
fn for_label(&self) -> &str
fn for_start(&self) -> &<Token as ListingElement>::Expr
fn for_stop(&self) -> &<Token as ListingElement>::Expr
fn for_step(&self) -> Option<&<Token as ListingElement>::Expr>
fn repeat_until_condition(&self) -> &<Token as ListingElement>::Expr
fn repeat_count(&self) -> &<Token as ListingElement>::Expr
fn repeat_counter_name(&self) -> Option<&str>
fn repeat_counter_start(&self) -> Option<&<Token as ListingElement>::Expr>
fn is_macro_definition(&self) -> bool
fn macro_definition_name(&self) -> &str
fn macro_definition_arguments(&self) -> SmallVec<[&str; 4]>
fn macro_definition_code(&self) -> &str
fn macro_call_name(&self) -> &str
fn macro_call_arguments(&self) -> &[<Token as ListingElement>::MacroParam]
fn if_nb_tests(&self) -> usize
fn incbin_fname(&self) -> &<Token as ListingElement>::Expr
fn incbin_offset(&self) -> Option<&<Token as ListingElement>::Expr>
fn incbin_length(&self) -> Option<&<Token as ListingElement>::Expr>
fn incbin_transformation(&self) -> &BinaryTransformation
fn include_fname(&self) -> &<Token as ListingElement>::Expr
fn include_namespace(&self) -> Option<&str>
fn include_once(&self) -> bool
fn function_definition_name(&self) -> &str
fn function_definition_params(&self) -> SmallVec<[&str; 4]>
fn crunched_section_kind(&self) -> &CrunchType
fn switch_expr(&self) -> &<Token as ListingElement>::Expr
fn data_exprs(&self) -> &[<Token as ListingElement>::Expr]
fn to_token(&self) -> Cow<'_, Token>
fn is_warning(&self) -> bool
fn warning_token(&self) -> &Token
fn warning_message(&self) -> &str
fn module_listing(&self) -> &[Token]
fn while_listing(&self) -> &[Token]
fn mnemonic_arg1(&self) -> Option<&<Token as ListingElement>::DataAccess>
fn iterate_listing(&self) -> &[Token]
fn for_listing(&self) -> &[Token]
fn repeat_until_listing(&self) -> &[Token]
fn repeat_listing(&self) -> &[Token]
fn if_test( &self, idx: usize, ) -> (&<Token as ListingElement>::TestKind, &[Token])
fn if_else(&self) -> Option<&[Token]>
fn function_definition_inner(&self) -> &[Token]
fn crunched_section_listing(&self) -> &[Token]
fn rorg_listing(&self) -> &[Token]
fn is_confined(&self) -> bool
fn confined_listing(&self) -> &[Token]
fn switch_cases( &self, ) -> Box<dyn Iterator<Item = (&<Token as ListingElement>::Expr, &[Token], bool)> + '_>
fn switch_default(&self) -> Option<&[Token]>
fn repeat_counter_step(&self) -> Option<&<Token as ListingElement>::Expr>
fn assembler_control_command( &self, ) -> &<Token as ListingElement>::AssemblerControlCommand
fn assembler_control_get_max_passes( &self, ) -> Option<&<Token as ListingElement>::Expr>
fn assembler_control_get_listing(&self) -> &[Token]
fn macro_flavor(&self) -> AssemblerFlavor
fn defer_listing_output(&self) -> bool
fn is_opcode(&self) -> bool
fn include_is_standard_include(&self) -> bool
fn starts_with_label(&self) -> bool
Source§impl MayHaveSpan for Token
impl MayHaveSpan for Token
Source§impl ParseToken for Token
impl ParseToken for Token
Source§impl ParsingStateVerified for Token
impl ParsingStateVerified for Token
fn is_accepted(&self, state: &ParsingState) -> bool
Source§impl ReturnExpr for Token
impl ReturnExpr for Token
Source§impl ToSimpleToken for Token
impl ToSimpleToken for Token
Source§fn as_simple_token(&self) -> Cow<'_, Token>
fn as_simple_token(&self) -> Cow<'_, Token>
Source§impl TokenExt for Token
impl TokenExt for Token
Source§fn unroll(&self, env: &mut Env) -> Option<Result<Vec<&Self>, AssemblerError>>
fn unroll(&self, env: &mut Env) -> Option<Result<Vec<&Self>, AssemblerError>>
Unroll the tokens when in a repetition loop TODO return an iterator in order to not produce the vector each time
Source§fn disassemble_data(&self) -> Result<Listing, String>
fn disassemble_data(&self) -> Result<Listing, String>
Generate the listing of opcodes for directives that contain data Defb/defw/Defs in order to have mnemonics. Fails when some values are not opcodes
Source§fn estimated_duration(&self) -> Result<usize, AssemblerError>
fn estimated_duration(&self) -> Result<usize, AssemblerError>
Returns an estimation of the duration. This estimation may be wrong for instruction having several states.
Source§fn fallback_number_of_bytes(&self) -> Result<usize, String>
fn fallback_number_of_bytes(&self) -> Result<usize, String>
fn to_bytes_with_options( &self, option: EnvOptions, ) -> Result<Vec<u8>, AssemblerError>
Source§fn number_of_bytes(&self) -> Result<usize, String>
fn number_of_bytes(&self) -> Result<usize, String>
Source§fn number_of_bytes_with_context(
&self,
table: &mut SymbolsTableCaseDependent,
) -> Result<usize, String>
fn number_of_bytes_with_context( &self, table: &mut SymbolsTableCaseDependent, ) -> Result<usize, String>
Source§fn to_bytes(&self) -> Result<Vec<u8>, AssemblerError>
fn to_bytes(&self) -> Result<Vec<u8>, AssemblerError>
Source§fn to_bytes_with_context(
&self,
table: &mut SymbolsTableCaseDependent,
) -> Result<Vec<u8>, AssemblerError>
fn to_bytes_with_context( &self, table: &mut SymbolsTableCaseDependent, ) -> Result<Vec<u8>, AssemblerError>
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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<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> 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> 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.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more