pub struct FieldRef<M, T> { /* private fields */ }Expand description
Type-safe field reference for database operations
FieldRef<M, T> provides compile-time type safety for field references,
where M is the model type and T is the field type.
This type replaces Python-style __ (double underscore) field lookup notation
with Rust-idiomatic typed field accessors.
§Type Parameters
M: Model type (e.g.,User,Post)T: Field type (e.g.,i64,String)
§Examples
use reinhardt_db::orm::expressions::FieldRef;
use reinhardt_core::macros::model;
use serde::{Serialize, Deserialize};
#[model(app_label = "users", table_name = "users")]
#[derive(Serialize, Deserialize)]
struct User {
#[field(primary_key = true)]
id: i64,
#[field(max_length = 255)]
name: String,
#[field(max_length = 255)]
email: String,
}
// The #[model] attribute macro automatically generates:
// impl User {
// pub const fn field_id() -> FieldRef<User, i64> {
// FieldRef::new("id")
// }
// pub const fn field_name() -> FieldRef<User, String> {
// FieldRef::new("name")
// }
// pub const fn field_email() -> FieldRef<User, String> {
// FieldRef::new("email")
// }
// }
// Basic usage:
let id_ref = User::field_id();
assert_eq!(id_ref.name(), "id");
assert_eq!(id_ref.to_sql(), "id");
// Convert to F expression for use in queries:
use reinhardt_db::orm::expressions::F;
let f: F = User::field_name().into();
assert_eq!(f.to_sql(), "name");Implementations§
Source§impl<M, T> FieldRef<M, T>
impl<M, T> FieldRef<M, T>
Sourcepub const fn new(name: &'static str) -> FieldRef<M, T>
Available on native and crate feature database only.
pub const fn new(name: &'static str) -> FieldRef<M, T>
native and crate feature database only.Create a new field reference with compile-time type safety
This constructor is typically used by the #[derive(Model)] macro
to generate field accessor methods.
§Arguments
name: Field name as a static string
§Examples
use reinhardt_db::orm::expressions::FieldRef;
const USER_ID: FieldRef<User, i64> = FieldRef::new("id");Sourcepub fn assign<V>(&self, value: V) -> FieldAssignmentwhere
V: Into<UpdateValue>,
Available on native and crate feature database only.
pub fn assign<V>(&self, value: V) -> FieldAssignmentwhere
V: Into<UpdateValue>,
native and crate feature database only.Sourcepub fn eq<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn eq<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn exact<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn exact<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create an exact equality filter using Django lookup naming.
Sourcepub fn iexact<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn iexact<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a case-insensitive exact match filter.
Sourcepub fn ne<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn ne<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn gt<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn gt<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn gte<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn gte<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn lt<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn lt<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn lte<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn lte<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Sourcepub fn is_in<I, V>(&self, values: I) -> Filter
Available on native and crate feature database only.
pub fn is_in<I, V>(&self, values: I) -> Filter
native and crate feature database only.Create an IN filter. Named is_in because in is a Rust keyword.
Sourcepub fn not_in<I, V>(&self, values: I) -> Filter
Available on native and crate feature database only.
pub fn not_in<I, V>(&self, values: I) -> Filter
native and crate feature database only.Create a NOT IN filter.
Sourcepub fn contains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn contains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a LIKE %value% containment filter.
Sourcepub fn icontains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn icontains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a case-insensitive containment filter.
Sourcepub fn starts_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn starts_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a LIKE value% prefix filter.
Sourcepub fn istarts_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn istarts_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a case-insensitive prefix filter.
Sourcepub fn ends_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn ends_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a LIKE %value suffix filter.
Sourcepub fn iends_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn iends_with<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a case-insensitive suffix filter.
Sourcepub fn is_null(&self) -> Filter
Available on native and crate feature database only.
pub fn is_null(&self) -> Filter
native and crate feature database only.Create an IS NULL filter.
Sourcepub fn is_not_null(&self) -> Filter
Available on native and crate feature database only.
pub fn is_not_null(&self) -> Filter
native and crate feature database only.Create an IS NOT NULL filter.
Sourcepub fn regex<V>(&self, pattern: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn regex<V>(&self, pattern: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a regular expression filter.
Sourcepub fn iregex<V>(&self, pattern: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn iregex<V>(&self, pattern: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a case-insensitive regular expression filter.
Sourcepub fn range<V>(&self, start: V, end: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn range<V>(&self, start: V, end: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a BETWEEN filter.
Sourcepub fn array_contains<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
Available on native and crate feature database only.
pub fn array_contains<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
native and crate feature database only.Create a PostgreSQL array containment filter (@>).
Sourcepub fn array_contained_by<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
Available on native and crate feature database only.
pub fn array_contained_by<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
native and crate feature database only.Create a PostgreSQL array contained-by filter (<@).
Sourcepub fn array_overlap<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
Available on native and crate feature database only.
pub fn array_overlap<I, V>(&self, values: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
native and crate feature database only.Create a PostgreSQL array overlap filter (&&).
Sourcepub fn jsonb_contains(&self, json: &str) -> Filter
Available on native and crate feature database only.
pub fn jsonb_contains(&self, json: &str) -> Filter
native and crate feature database only.Create a PostgreSQL JSONB containment filter (@>).
Sourcepub fn jsonb_contained_by(&self, json: &str) -> Filter
Available on native and crate feature database only.
pub fn jsonb_contained_by(&self, json: &str) -> Filter
native and crate feature database only.Create a PostgreSQL JSONB contained-by filter (<@).
Sourcepub fn jsonb_has_key(&self, key: &str) -> Filter
Available on native and crate feature database only.
pub fn jsonb_has_key(&self, key: &str) -> Filter
native and crate feature database only.Create a PostgreSQL JSONB key-exists filter (?).
Sourcepub fn jsonb_has_any_keys<I, V>(&self, keys: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
Available on native and crate feature database only.
pub fn jsonb_has_any_keys<I, V>(&self, keys: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
native and crate feature database only.Create a PostgreSQL JSONB any-key-exists filter (?|).
Sourcepub fn jsonb_has_keys<I, V>(&self, keys: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
Available on native and crate feature database only.
pub fn jsonb_has_keys<I, V>(&self, keys: I) -> Filterwhere
I: IntoIterator<Item = V>,
V: ToString,
native and crate feature database only.Create a PostgreSQL JSONB all-keys-exist filter (?&).
Sourcepub fn jsonb_path_exists(&self, path: &str) -> Filter
Available on native and crate feature database only.
pub fn jsonb_path_exists(&self, path: &str) -> Filter
native and crate feature database only.Create a PostgreSQL JSONPath existence filter (@?).
Sourcepub fn range_contains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
Available on native and crate feature database only.
pub fn range_contains<V>(&self, value: V) -> Filterwhere
V: Into<FilterValue>,
native and crate feature database only.Create a PostgreSQL range field containment filter (@>).
Sourcepub fn range_contained_by(&self, range: &str) -> Filter
Available on native and crate feature database only.
pub fn range_contained_by(&self, range: &str) -> Filter
native and crate feature database only.Create a PostgreSQL range field contained-by filter (<@).
Sourcepub fn range_overlaps(&self, range: &str) -> Filter
Available on native and crate feature database only.
pub fn range_overlaps(&self, range: &str) -> Filter
native and crate feature database only.Create a PostgreSQL range field overlap filter (&&).
Sourcepub fn date(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn date(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its date component.
Sourcepub fn time(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn time(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a datetime/time field to its time component.
Sourcepub fn year(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn year(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its year component.
Sourcepub fn iso_year(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn iso_year(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its ISO year component.
Sourcepub fn month(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn month(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its month component.
Sourcepub fn day(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn day(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its day component.
Sourcepub fn week(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn week(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its week component.
Sourcepub fn week_day(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn week_day(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform to Django-compatible weekday where Sunday is 1.
Sourcepub fn iso_week_day(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn iso_week_day(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform to ISO weekday where Monday is 1.
Sourcepub fn quarter(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn quarter(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a date/datetime field to its quarter component.
Sourcepub fn hour(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn hour(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a datetime/time field to its hour component.
Sourcepub fn minute(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn minute(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a datetime/time field to its minute component.
Sourcepub fn second(&self) -> TransformedFieldRef<M>
Available on native and crate feature database only.
pub fn second(&self) -> TransformedFieldRef<M>
native and crate feature database only.Transform a datetime/time field to its second component.
Sourcepub fn eq_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
Available on native and crate feature database only.
pub fn eq_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
native and crate feature database only.Sourcepub fn ne_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
Available on native and crate feature database only.
pub fn ne_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
native and crate feature database only.Sourcepub fn gt_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
Available on native and crate feature database only.
pub fn gt_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
native and crate feature database only.Sourcepub fn gte_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
Available on native and crate feature database only.
pub fn gte_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
native and crate feature database only.Sourcepub fn lt_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
Available on native and crate feature database only.
pub fn lt_field<T2>(&self, other: FieldRef<M, T2>) -> Filter
native and crate feature database only.Trait Implementations§
impl<M, T> Copy for FieldRef<M, T>
Auto Trait Implementations§
impl<M, T> Freeze for FieldRef<M, T>
impl<M, T> RefUnwindSafe for FieldRef<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for FieldRef<M, T>
impl<M, T> Sync for FieldRef<M, T>
impl<M, T> Unpin for FieldRef<M, T>
impl<M, T> UnsafeUnpin for FieldRef<M, T>
impl<M, T> UnwindSafe for FieldRef<M, T>where
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DynamicRequestExt for T
impl<T> DynamicRequestExt for T
Source§fn root_value(self, value: FieldValue<'static>) -> DynamicRequest
fn root_value(self, value: FieldValue<'static>) -> DynamicRequest
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
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,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<E> ServerFnErrorAssertions<E> for Ewhere
E: Debug,
impl<E> ServerFnErrorAssertions<E> for Ewhere
E: Debug,
Source§fn should_contain_message(&self, expected: &str)where
E: Display,
fn should_contain_message(&self, expected: &str)where
E: Display,
Source§fn should_have_message(&self, expected: &str)where
E: Display,
fn should_have_message(&self, expected: &str)where
E: Display,
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.