pub enum Lang {
Show 63 variants
Number {
value: f32,
help_data: HelpData,
},
Integer {
value: i32,
help_data: HelpData,
},
Bool {
value: bool,
help_data: HelpData,
},
Char {
value: String,
help_data: HelpData,
},
Scope {
body: Vec<Lang>,
help_data: HelpData,
},
Function {
parameters: Vec<ArgumentType>,
return_type: Type,
body: Box<Lang>,
help_data: HelpData,
},
Lambda {
parameters: Vec<Lang>,
body: Box<Lang>,
help_data: HelpData,
},
Module {
name: String,
body: Vec<Lang>,
module_position: ModulePosition,
config: Config,
help_data: HelpData,
},
Variable {
name: String,
is_opaque: bool,
related_type: Type,
help_data: HelpData,
},
FunctionApp {
identifier: Box<Lang>,
arguments: Vec<Lang>,
help_data: HelpData,
},
VecFunctionApp {
vector_type: VecType,
identifier: Box<Lang>,
arguments: Vec<Lang>,
help_data: HelpData,
},
ArrayIndexing {
identifier: Box<Lang>,
indexing: Box<Lang>,
help_data: HelpData,
},
Let {
variable: Box<Lang>,
type: Type,
expression: Box<Lang>,
is_public: bool,
is_testable: bool,
is_export: bool,
help_data: HelpData,
},
Alias {
identifier: Box<Lang>,
parameters: Vec<Type>,
target_type: Type,
is_public: bool,
is_export: bool,
help_data: HelpData,
},
Array {
value: Vec<Lang>,
help_data: HelpData,
},
List {
value: Vec<ArgumentValue>,
spreads: Vec<Lang>,
help_data: HelpData,
},
DataFrame {
value: Vec<ArgumentValue>,
help_data: HelpData,
},
Tuple {
value: Vec<Lang>,
help_data: HelpData,
},
Lines {
value: Vec<Lang>,
help_data: HelpData,
},
Comment {
value: String,
help_data: HelpData,
},
ModuleImport {
value: String,
help_data: HelpData,
},
ImportFrom {
package: String,
functions: Vec<String>,
help_data: HelpData,
},
Import {
value: Type,
help_data: HelpData,
},
Test {
value: Vec<Lang>,
help_data: HelpData,
},
Return {
value: Box<Lang>,
help_data: HelpData,
},
VecBlock {
value: String,
help_data: HelpData,
},
RBlock {
value: String,
help_data: HelpData,
},
Library {
value: String,
help_data: HelpData,
},
Exp {
value: String,
help_data: HelpData,
},
Vector {
value: Vec<Lang>,
help_data: HelpData,
},
Not {
value: Box<Lang>,
help_data: HelpData,
},
TestBlock {
value: Box<Lang>,
help_data: HelpData,
},
Use {
lang: Box<Lang>,
members: Box<Lang>,
help_data: HelpData,
},
WhileLoop {
condition: Box<Lang>,
body: Box<Lang>,
help_data: HelpData,
},
Loop {
body: Box<Lang>,
help_data: HelpData,
},
Sequence {
body: Vec<Lang>,
help_data: HelpData,
},
Tag {
name: String,
value: Box<Lang>,
help_data: HelpData,
},
GenFunc {
name: String,
help_data: HelpData,
},
If {
condition: Box<Lang>,
if_block: Box<Lang>,
else_block: Box<Lang>,
help_data: HelpData,
},
Match {
target: Box<Lang>,
branches: Vec<(Lang, Box<Lang>)>,
help_data: HelpData,
},
Assign {
identifier: Box<Lang>,
expression: Box<Lang>,
help_data: HelpData,
},
Signature {
identifier: Var,
target_type: Type,
help_data: HelpData,
is_extern: bool,
extern_r_name: Option<String>,
},
TypeConstructor {
name: String,
parameters: Vec<Type>,
category: ConstructorCategory,
help_data: HelpData,
},
ForLoop {
identifier: Var,
expression: Box<Lang>,
body: Box<Lang>,
help_data: HelpData,
},
RFunction {
parameters: Vec<Lang>,
body: String,
help_data: HelpData,
},
ExternBlock {
parameters: Vec<ArgumentType>,
return_type: Type,
body: String,
help_data: HelpData,
},
KeyValue {
key: String,
value: Box<Lang>,
help_data: HelpData,
},
Operator {
operator: Op,
rhs: Box<Lang>,
lhs: Box<Lang>,
help_data: HelpData,
},
TypePattern {
variable_name: String,
matched_type: Type,
help_data: HelpData,
},
Union(Box<Lang>, Box<Lang>, HelpData),
JSBlock(Box<Lang>, u32, HelpData),
Break(HelpData),
Next(HelpData),
Null(HelpData),
NA(HelpData),
Empty(HelpData),
Dots(HelpData),
UseModule {
module_path: Vec<String>,
selector: UseSelector,
help_data: HelpData,
},
ConstructorCall {
module_path: Vec<String>,
type_name: String,
fields: Vec<ArgumentValue>,
spread: Option<(Vec<String>, String, HelpData)>,
spreads: Vec<Lang>,
help_data: HelpData,
},
ArrayConstructorCall {
type_name: String,
elements: Vec<Lang>,
help_data: HelpData,
},
ValidatingCast {
expression: Box<Lang>,
type_name: String,
literal_type: Option<Type>,
help_data: HelpData,
},
UnionConstructor {
union_name: String,
variant_name: String,
fields: Vec<ArgumentValue>,
help_data: HelpData,
},
PartialApp {
function: Box<Lang>,
arguments: Vec<Lang>,
help_data: HelpData,
},
}Variants§
Number
Integer
Bool
Char
Scope
Function
Lambda
Module
Fields
module_position: ModulePositionVariable
FunctionApp
VecFunctionApp
ArrayIndexing
Let
Fields
is_testable: boolWhen true, the @testable annotation was applied: the binding stays
private in a normal build but is exposed as M$.test_<name> in a
test build (see RFC-TR-032 and Config::test_mode).
Alias
Fields
Array
List
Fields
value: Vec<ArgumentValue>DataFrame
Tuple
Lines
Comment
ModuleImport
ImportFrom
Import
Test
Return
VecBlock
RBlock
R { ... } — an untyped raw-R value block (see syntaxe.md §12).
Unlike VecBlock, the body is captured verbatim (brace-balanced, via
parse_block) and never re-parsed as TypR — it can hold any real R
syntax (pipes, formulas, NSE). Transpiles to a bare R { ... }
expression, which already evaluates to its last statement’s value, so
no wrapper/call is emitted.
Library
Exp
Vector
Not
TestBlock
Use
WhileLoop
Loop
Sequence
Tag
GenFunc
If
Match
Assign
Signature
Fields
TypeConstructor
ForLoop
RFunction
ExternBlock
KeyValue
Operator
TypePattern
Pattern matching on primitive types: x as int => ...
TypePattern(variable_name, matched_type, help_data)
Union(Box<Lang>, Box<Lang>, HelpData)
JSBlock(Box<Lang>, u32, HelpData)
Break(HelpData)
Next(HelpData)
Null(HelpData)
NA(HelpData)
Empty(HelpData)
Dots(HelpData)
UseModule
Directive use M::*; or use M::{a, b as c};
ConstructorCall
Explicit constructor call: TypeName:{ field1 = val1, field2 = val2 } or mod$TypeName:{ ... }
spread carries the optional ..source element (RFC-TR-033): the module path of the
spread variable (empty if local), its name, and its own HelpData. spreads carries
zero or more ...source elements (spread_operator2.md): a runtime structural merge,
distinct from spread’s static nominal expansion — see merge_record_fields_override
in type_checking/mod.rs and the spread() R helper in configs/src/std.R.
Fields
fields: Vec<ArgumentValue>ArrayConstructorCall
Array constructor call: TypeName:[expr, expr, ...]
ValidatingCast
Validating cast: expr as! TypeName — calls validate_TypeName(expr) at runtime.
expr as! [Any, int] / Vec[N, T] / Array[N, T] casts to an inline,
non-aliased structural type instead: literal_type then holds the
parsed Type (registered via Context::push_types at typing time so
it gets an auto-generated as.ArrayN cast, called instead of
validate_TypeName at transpile time).
UnionConstructor
Union constructor: Union.Variant or Union.Variant:{ field = val, ... }
PartialApp
Partial application: \f(arg1 = val1, ...). arguments holds only the
fixed Lang::KeyValue entries; parameters of function not named here
become the holes of the generated function. Desugared into a
Lang::Function during type-checking (see
type_checking::partial_application) — never reaches transpilation.
Implementations§
Source§impl Lang
impl Lang
pub fn save_in_memory(&self) -> bool
pub fn to_module(self, name: &str, environment: Environment) -> Self
pub fn to_arg_type(&self) -> Option<ArgumentType>
pub fn extract_types_from_expression(&self, context: &Context) -> Vec<Type>
pub fn is_value(&self) -> bool
pub fn is_undefined(&self) -> bool
pub fn is_function(&self) -> bool
pub fn infer_var_name(&self, args: &[Lang], context: &Context) -> Var
pub fn lang_substitution( &self, sub_var: &Lang, var: &Lang, context: &Context, ) -> String
pub fn get_help_data(&self) -> HelpData
pub fn linearize_array(&self) -> Vec<Lang>
pub fn is_r_function(&self) -> bool
pub fn nb_params(&self) -> usize
pub fn simple_print(&self) -> String
pub fn typing(&self, context: &Context) -> TypeContext
pub fn to_js(&self, context: &Context) -> (String, Context)
pub fn to_simple_r(&self, context: &Context) -> (String, Context)
pub fn to_module_member(self) -> Lang
pub fn to_module_helper(self, name: &str) -> Lang
pub fn to_arg_value( self, type_module: &Type, context: &Context, ) -> Option<Vec<ArgumentValue>>
pub fn get_token_type(&self) -> TokenKind
pub fn get_binding_power(&self) -> i32
pub fn get_members_if_array(&self) -> Option<Vec<Lang>>
pub fn len(&self) -> i32
pub fn is_empty(&self) -> bool
pub fn to_vec(self) -> Vec<Lang>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lang
impl<'de> Deserialize<'de> for Lang
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Lang
Source§impl Locatable for Lang
impl Locatable for Lang
Source§fn get_help_data(&self) -> HelpData
fn get_help_data(&self) -> HelpData
HelpData attached to this node.Source§impl TryFrom<Lang> for ModuleLang
impl TryFrom<Lang> for ModuleLang
Auto Trait Implementations§
impl Freeze for Lang
impl RefUnwindSafe for Lang
impl Send for Lang
impl Sync for Lang
impl Unpin for Lang
impl UnsafeUnpin for Lang
impl UnwindSafe for Lang
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<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> 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> 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.