Struct kcl_lib::executor::SourceRange
source · pub struct SourceRange(pub [usize; 2]);
Tuple Fields§
§0: [usize; 2]
Implementations§
source§impl SourceRange
impl SourceRange
pub fn start_to_lsp_position(&self, code: &str) -> LspPosition
pub fn end_to_lsp_position(&self, code: &str) -> LspPosition
pub fn to_lsp_range(&self, code: &str) -> LspRange
Trait Implementations§
source§impl Clone for SourceRange
impl Clone for SourceRange
source§fn clone(&self) -> SourceRange
fn clone(&self) -> SourceRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceRange
impl Debug for SourceRange
source§impl Default for SourceRange
impl Default for SourceRange
source§fn default() -> SourceRange
fn default() -> SourceRange
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SourceRange
impl<'de> Deserialize<'de> for SourceRange
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&ArrayExpression> for SourceRange
impl From<&ArrayExpression> for SourceRange
source§fn from(v: &ArrayExpression) -> Self
fn from(v: &ArrayExpression) -> Self
Converts to this type from the input type.
source§impl From<&BinaryExpression> for SourceRange
impl From<&BinaryExpression> for SourceRange
source§fn from(v: &BinaryExpression) -> Self
fn from(v: &BinaryExpression) -> Self
Converts to this type from the input type.
source§impl From<&BinaryPart> for SourceRange
impl From<&BinaryPart> for SourceRange
source§fn from(value: &BinaryPart) -> Self
fn from(value: &BinaryPart) -> Self
Converts to this type from the input type.
source§impl From<&BodyItem> for SourceRange
impl From<&BodyItem> for SourceRange
source§impl From<&Box<ArrayExpression>> for SourceRange
impl From<&Box<ArrayExpression>> for SourceRange
source§fn from(v: &Box<ArrayExpression>) -> Self
fn from(v: &Box<ArrayExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<BinaryExpression>> for SourceRange
impl From<&Box<BinaryExpression>> for SourceRange
source§fn from(v: &Box<BinaryExpression>) -> Self
fn from(v: &Box<BinaryExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<CallExpression>> for SourceRange
impl From<&Box<CallExpression>> for SourceRange
source§fn from(v: &Box<CallExpression>) -> Self
fn from(v: &Box<CallExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<ExpressionStatement>> for SourceRange
impl From<&Box<ExpressionStatement>> for SourceRange
source§fn from(v: &Box<ExpressionStatement>) -> Self
fn from(v: &Box<ExpressionStatement>) -> Self
Converts to this type from the input type.
source§impl From<&Box<FunctionExpression>> for SourceRange
impl From<&Box<FunctionExpression>> for SourceRange
source§fn from(v: &Box<FunctionExpression>) -> Self
fn from(v: &Box<FunctionExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<Identifier>> for SourceRange
impl From<&Box<Identifier>> for SourceRange
source§fn from(v: &Box<Identifier>) -> Self
fn from(v: &Box<Identifier>) -> Self
Converts to this type from the input type.
source§impl From<&Box<MemberExpression>> for SourceRange
impl From<&Box<MemberExpression>> for SourceRange
source§fn from(v: &Box<MemberExpression>) -> Self
fn from(v: &Box<MemberExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<ObjectExpression>> for SourceRange
impl From<&Box<ObjectExpression>> for SourceRange
source§fn from(v: &Box<ObjectExpression>) -> Self
fn from(v: &Box<ObjectExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<ObjectProperty>> for SourceRange
impl From<&Box<ObjectProperty>> for SourceRange
source§fn from(v: &Box<ObjectProperty>) -> Self
fn from(v: &Box<ObjectProperty>) -> Self
Converts to this type from the input type.
source§impl From<&Box<PipeExpression>> for SourceRange
impl From<&Box<PipeExpression>> for SourceRange
source§fn from(v: &Box<PipeExpression>) -> Self
fn from(v: &Box<PipeExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<PipeSubstitution>> for SourceRange
impl From<&Box<PipeSubstitution>> for SourceRange
source§fn from(v: &Box<PipeSubstitution>) -> Self
fn from(v: &Box<PipeSubstitution>) -> Self
Converts to this type from the input type.
source§impl From<&Box<ReturnStatement>> for SourceRange
impl From<&Box<ReturnStatement>> for SourceRange
source§fn from(v: &Box<ReturnStatement>) -> Self
fn from(v: &Box<ReturnStatement>) -> Self
Converts to this type from the input type.
source§impl From<&Box<UnaryExpression>> for SourceRange
impl From<&Box<UnaryExpression>> for SourceRange
source§fn from(v: &Box<UnaryExpression>) -> Self
fn from(v: &Box<UnaryExpression>) -> Self
Converts to this type from the input type.
source§impl From<&Box<VariableDeclaration>> for SourceRange
impl From<&Box<VariableDeclaration>> for SourceRange
source§fn from(v: &Box<VariableDeclaration>) -> Self
fn from(v: &Box<VariableDeclaration>) -> Self
Converts to this type from the input type.
source§impl From<&Box<VariableDeclarator>> for SourceRange
impl From<&Box<VariableDeclarator>> for SourceRange
source§fn from(v: &Box<VariableDeclarator>) -> Self
fn from(v: &Box<VariableDeclarator>) -> Self
Converts to this type from the input type.
source§impl From<&CallExpression> for SourceRange
impl From<&CallExpression> for SourceRange
source§fn from(v: &CallExpression) -> Self
fn from(v: &CallExpression) -> Self
Converts to this type from the input type.
source§impl From<&ExpressionStatement> for SourceRange
impl From<&ExpressionStatement> for SourceRange
source§fn from(v: &ExpressionStatement) -> Self
fn from(v: &ExpressionStatement) -> Self
Converts to this type from the input type.
source§impl From<&FunctionExpression> for SourceRange
impl From<&FunctionExpression> for SourceRange
source§fn from(v: &FunctionExpression) -> Self
fn from(v: &FunctionExpression) -> Self
Converts to this type from the input type.
source§impl From<&Identifier> for SourceRange
impl From<&Identifier> for SourceRange
source§fn from(v: &Identifier) -> Self
fn from(v: &Identifier) -> Self
Converts to this type from the input type.
source§impl From<&KclNone> for SourceRange
impl From<&KclNone> for SourceRange
source§impl From<&Literal> for SourceRange
impl From<&Literal> for SourceRange
source§impl From<&LiteralIdentifier> for SourceRange
impl From<&LiteralIdentifier> for SourceRange
source§fn from(id: &LiteralIdentifier) -> Self
fn from(id: &LiteralIdentifier) -> Self
Converts to this type from the input type.
source§impl From<&MemberExpression> for SourceRange
impl From<&MemberExpression> for SourceRange
source§fn from(v: &MemberExpression) -> Self
fn from(v: &MemberExpression) -> Self
Converts to this type from the input type.
source§impl From<&MemberObject> for SourceRange
impl From<&MemberObject> for SourceRange
source§fn from(obj: &MemberObject) -> Self
fn from(obj: &MemberObject) -> Self
Converts to this type from the input type.
source§impl From<&ObjectExpression> for SourceRange
impl From<&ObjectExpression> for SourceRange
source§fn from(v: &ObjectExpression) -> Self
fn from(v: &ObjectExpression) -> Self
Converts to this type from the input type.
source§impl From<&ObjectProperty> for SourceRange
impl From<&ObjectProperty> for SourceRange
source§fn from(v: &ObjectProperty) -> Self
fn from(v: &ObjectProperty) -> Self
Converts to this type from the input type.
source§impl From<&PipeExpression> for SourceRange
impl From<&PipeExpression> for SourceRange
source§fn from(v: &PipeExpression) -> Self
fn from(v: &PipeExpression) -> Self
Converts to this type from the input type.
source§impl From<&PipeSubstitution> for SourceRange
impl From<&PipeSubstitution> for SourceRange
source§fn from(v: &PipeSubstitution) -> Self
fn from(v: &PipeSubstitution) -> Self
Converts to this type from the input type.
source§impl From<&ReturnStatement> for SourceRange
impl From<&ReturnStatement> for SourceRange
source§fn from(v: &ReturnStatement) -> Self
fn from(v: &ReturnStatement) -> Self
Converts to this type from the input type.
source§impl From<&Token> for SourceRange
impl From<&Token> for SourceRange
source§impl From<&UnaryExpression> for SourceRange
impl From<&UnaryExpression> for SourceRange
source§fn from(v: &UnaryExpression) -> Self
fn from(v: &UnaryExpression) -> Self
Converts to this type from the input type.
source§impl From<&Value> for SourceRange
impl From<&Value> for SourceRange
source§impl From<&VariableDeclaration> for SourceRange
impl From<&VariableDeclaration> for SourceRange
source§fn from(v: &VariableDeclaration) -> Self
fn from(v: &VariableDeclaration) -> Self
Converts to this type from the input type.
source§impl From<&VariableDeclarator> for SourceRange
impl From<&VariableDeclarator> for SourceRange
source§fn from(v: &VariableDeclarator) -> Self
fn from(v: &VariableDeclarator) -> Self
Converts to this type from the input type.
source§impl From<ArrayExpression> for SourceRange
impl From<ArrayExpression> for SourceRange
source§fn from(v: ArrayExpression) -> Self
fn from(v: ArrayExpression) -> Self
Converts to this type from the input type.
source§impl From<BinaryExpression> for SourceRange
impl From<BinaryExpression> for SourceRange
source§fn from(v: BinaryExpression) -> Self
fn from(v: BinaryExpression) -> Self
Converts to this type from the input type.
source§impl From<BinaryPart> for SourceRange
impl From<BinaryPart> for SourceRange
source§fn from(value: BinaryPart) -> Self
fn from(value: BinaryPart) -> Self
Converts to this type from the input type.
source§impl From<BodyItem> for SourceRange
impl From<BodyItem> for SourceRange
source§impl From<CallExpression> for SourceRange
impl From<CallExpression> for SourceRange
source§fn from(v: CallExpression) -> Self
fn from(v: CallExpression) -> Self
Converts to this type from the input type.
source§impl From<ExpressionStatement> for SourceRange
impl From<ExpressionStatement> for SourceRange
source§fn from(v: ExpressionStatement) -> Self
fn from(v: ExpressionStatement) -> Self
Converts to this type from the input type.
source§impl From<FunctionExpression> for SourceRange
impl From<FunctionExpression> for SourceRange
source§fn from(v: FunctionExpression) -> Self
fn from(v: FunctionExpression) -> Self
Converts to this type from the input type.
source§impl From<Identifier> for SourceRange
impl From<Identifier> for SourceRange
source§fn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
source§impl From<Literal> for SourceRange
impl From<Literal> for SourceRange
source§impl From<LiteralIdentifier> for SourceRange
impl From<LiteralIdentifier> for SourceRange
source§fn from(id: LiteralIdentifier) -> Self
fn from(id: LiteralIdentifier) -> Self
Converts to this type from the input type.
source§impl From<MemberExpression> for SourceRange
impl From<MemberExpression> for SourceRange
source§fn from(v: MemberExpression) -> Self
fn from(v: MemberExpression) -> Self
Converts to this type from the input type.
source§impl From<MemberObject> for SourceRange
impl From<MemberObject> for SourceRange
source§fn from(obj: MemberObject) -> Self
fn from(obj: MemberObject) -> Self
Converts to this type from the input type.
source§impl From<ObjectExpression> for SourceRange
impl From<ObjectExpression> for SourceRange
source§fn from(v: ObjectExpression) -> Self
fn from(v: ObjectExpression) -> Self
Converts to this type from the input type.
source§impl From<ObjectProperty> for SourceRange
impl From<ObjectProperty> for SourceRange
source§fn from(v: ObjectProperty) -> Self
fn from(v: ObjectProperty) -> Self
Converts to this type from the input type.
source§impl From<PipeExpression> for SourceRange
impl From<PipeExpression> for SourceRange
source§fn from(v: PipeExpression) -> Self
fn from(v: PipeExpression) -> Self
Converts to this type from the input type.
source§impl From<PipeSubstitution> for SourceRange
impl From<PipeSubstitution> for SourceRange
source§fn from(v: PipeSubstitution) -> Self
fn from(v: PipeSubstitution) -> Self
Converts to this type from the input type.
source§impl From<ReturnStatement> for SourceRange
impl From<ReturnStatement> for SourceRange
source§fn from(v: ReturnStatement) -> Self
fn from(v: ReturnStatement) -> Self
Converts to this type from the input type.
source§impl From<SourceRange> for Metadata
impl From<SourceRange> for Metadata
source§fn from(source_range: SourceRange) -> Self
fn from(source_range: SourceRange) -> Self
Converts to this type from the input type.
source§impl From<Token> for SourceRange
impl From<Token> for SourceRange
source§impl From<UnaryExpression> for SourceRange
impl From<UnaryExpression> for SourceRange
source§fn from(v: UnaryExpression) -> Self
fn from(v: UnaryExpression) -> Self
Converts to this type from the input type.
source§impl From<Value> for SourceRange
impl From<Value> for SourceRange
source§impl From<VariableDeclaration> for SourceRange
impl From<VariableDeclaration> for SourceRange
source§fn from(v: VariableDeclaration) -> Self
fn from(v: VariableDeclaration) -> Self
Converts to this type from the input type.
source§impl From<VariableDeclarator> for SourceRange
impl From<VariableDeclarator> for SourceRange
source§fn from(v: VariableDeclarator) -> Self
fn from(v: VariableDeclarator) -> Self
Converts to this type from the input type.
source§impl Hash for SourceRange
impl Hash for SourceRange
source§impl JsonSchema for SourceRange
impl JsonSchema for SourceRange
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for SourceRange
impl PartialEq for SourceRange
source§fn eq(&self, other: &SourceRange) -> bool
fn eq(&self, other: &SourceRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SourceRange
impl Serialize for SourceRange
source§impl TS for SourceRange
impl TS for SourceRange
const EXPORT_TO: Option<&'static str> = _
source§fn decl() -> String
fn decl() -> String
Declaration of this type, e.g.
interface User { user_id: number, ... }
.
This function will panic if the type has no declaration.source§fn inline() -> String
fn inline() -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }
.
This function will panic if the type cannot be inlined.source§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
Information about types this type depends on.
This is used for resolving imports when exporting to a file.
source§fn transparent() -> bool
fn transparent() -> bool
true
if this is a transparent type, e.g tuples or a list.This is used for resolving imports when using the
export!
macro.source§fn name_with_type_args(args: Vec<String>) -> String
fn name_with_type_args(args: Vec<String>) -> String
Name of this type in TypeScript, with type arguments.
source§fn inline_flattened() -> String
fn inline_flattened() -> String
Flatten an type declaration.
This function will panic if the type cannot be flattened.
This function will panic if the type cannot be flattened.
source§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
Manually export this type to a file.
The output file can be specified by annotating the type with
#[ts(export_to = ".."]
.
By default, the filename will be derived from the types name. Read moresource§fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_to(path: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
Manually export this type to a file with a file with the specified path. This
function will ignore the
#[ts(export_to = "..)]
attribute.source§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
Manually generate bindings for this type, returning a
This function does not format the output, even if the
String
.This function does not format the output, even if the
format
feature is enabled.impl Copy for SourceRange
impl Eq for SourceRange
impl StructuralPartialEq for SourceRange
Auto Trait Implementations§
impl Freeze for SourceRange
impl RefUnwindSafe for SourceRange
impl Send for SourceRange
impl Sync for SourceRange
impl Unpin for SourceRange
impl UnwindSafe for SourceRange
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.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
Compare self to
key
and return true
if they are equal.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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
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,
Pipes by value. This is generally the method you want to use. Read more
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,
Borrows
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,
Mutably borrows
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
Borrows
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
Mutably borrows
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
Borrows
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.