pub struct AssignedByte<F: CircuitField>(/* private fields */);Expand description
This wrapper type on AssignedNative<F> is designed to enforce type safety
on assigned bytes. It prevents the user from creating an AssignedByte
without using the designated entry points, which guarantee (with
constraints) that the assigned value is indeed in the range [0, 256).
Trait Implementations§
Source§impl<F, CoreDecomposition, NativeArith> AssertionInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
The set of AssertionInstructions for bytes.
impl<F, CoreDecomposition, NativeArith> AssertionInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
The set of AssertionInstructions for bytes.
Source§fn assert_equal(
&self,
layouter: &mut impl Layouter<F>,
byte1: &AssignedByte<F>,
byte2: &AssignedByte<F>,
) -> Result<(), Error>
fn assert_equal( &self, layouter: &mut impl Layouter<F>, byte1: &AssignedByte<F>, byte2: &AssignedByte<F>, ) -> Result<(), Error>
Source§fn assert_not_equal(
&self,
layouter: &mut impl Layouter<F>,
byte1: &AssignedByte<F>,
byte2: &AssignedByte<F>,
) -> Result<(), Error>
fn assert_not_equal( &self, layouter: &mut impl Layouter<F>, byte1: &AssignedByte<F>, byte2: &AssignedByte<F>, ) -> Result<(), Error>
Source§fn assert_equal_to_fixed(
&self,
layouter: &mut impl Layouter<F>,
byte: &AssignedByte<F>,
constant: u8,
) -> Result<(), Error>
fn assert_equal_to_fixed( &self, layouter: &mut impl Layouter<F>, byte: &AssignedByte<F>, constant: u8, ) -> Result<(), Error>
Source§fn assert_not_equal_to_fixed(
&self,
layouter: &mut impl Layouter<F>,
byte: &AssignedByte<F>,
constant: u8,
) -> Result<(), Error>
fn assert_not_equal_to_fixed( &self, layouter: &mut impl Layouter<F>, byte: &AssignedByte<F>, constant: u8, ) -> Result<(), Error>
Source§impl<F, CoreDecomposition, NativeArith> AssignmentInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
The set of circuit instructions for assignment of bytes.
impl<F, CoreDecomposition, NativeArith> AssignmentInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
The set of circuit instructions for assignment of bytes.
Source§fn assign(
&self,
layouter: &mut impl Layouter<F>,
byte: Value<u8>,
) -> Result<AssignedByte<F>, Error>
fn assign( &self, layouter: &mut impl Layouter<F>, byte: Value<u8>, ) -> Result<AssignedByte<F>, Error>
Source§fn assign_fixed(
&self,
layouter: &mut impl Layouter<F>,
constant: u8,
) -> Result<AssignedByte<F>, Error>
fn assign_fixed( &self, layouter: &mut impl Layouter<F>, constant: u8, ) -> Result<AssignedByte<F>, Error>
Source§impl<F: Clone + CircuitField> Clone for AssignedByte<F>
impl<F: Clone + CircuitField> Clone for AssignedByte<F>
Source§fn clone(&self) -> AssignedByte<F>
fn clone(&self) -> AssignedByte<F>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<F, CoreDecomposition, NativeArith> ControlFlowInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>> + ControlFlowInstructions<F, AssignedNative<F>>,
impl<F, CoreDecomposition, NativeArith> ControlFlowInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>> + ControlFlowInstructions<F, AssignedNative<F>>,
Source§fn select(
&self,
layouter: &mut impl Layouter<F>,
bit: &AssignedBit<F>,
x: &AssignedByte<F>,
y: &AssignedByte<F>,
) -> Result<AssignedByte<F>, Error>
fn select( &self, layouter: &mut impl Layouter<F>, bit: &AssignedBit<F>, x: &AssignedByte<F>, y: &AssignedByte<F>, ) -> Result<AssignedByte<F>, Error>
Source§fn cond_swap(
&self,
layouter: &mut impl Layouter<F>,
cond: &AssignedBit<F>,
x: &AssignedByte<F>,
y: &AssignedByte<F>,
) -> Result<(AssignedByte<F>, AssignedByte<F>), Error>
fn cond_swap( &self, layouter: &mut impl Layouter<F>, cond: &AssignedBit<F>, x: &AssignedByte<F>, y: &AssignedByte<F>, ) -> Result<(AssignedByte<F>, AssignedByte<F>), Error>
x and y only if cond is set to 1.Source§fn cond_assert_equal(
&self,
layouter: &mut impl Layouter<F>,
cond: &AssignedBit<F>,
x: &Assigned,
y: &Assigned,
) -> Result<(), Error>
fn cond_assert_equal( &self, layouter: &mut impl Layouter<F>, cond: &AssignedBit<F>, x: &Assigned, y: &Assigned, ) -> Result<(), Error>
cond is set to 1.Source§impl<F, CoreDecomposition, NativeArith> ConversionInstructions<F, AssignedByte<F>, AssignedCell<F, F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Conversion from AssignedByte to AssignedNative.
impl<F, CoreDecomposition, NativeArith> ConversionInstructions<F, AssignedByte<F>, AssignedCell<F, F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Conversion from AssignedByte to AssignedNative.
Source§fn convert_value(&self, x: &u8) -> Option<F>
fn convert_value(&self, x: &u8) -> Option<F>
None if the conversion failed.Source§fn convert(
&self,
_layouter: &mut impl Layouter<F>,
byte: &AssignedByte<F>,
) -> Result<AssignedNative<F>, Error>
fn convert( &self, _layouter: &mut impl Layouter<F>, byte: &AssignedByte<F>, ) -> Result<AssignedNative<F>, Error>
Source§impl<F, K, P, N> ConversionInstructions<F, AssignedByte<F>, AssignedField<F, K, P>> for FieldChip<F, K, P, N>
impl<F, K, P, N> ConversionInstructions<F, AssignedByte<F>, AssignedField<F, K, P>> for FieldChip<F, K, P, N>
Source§fn convert_value(&self, x: &u8) -> Option<K>
fn convert_value(&self, x: &u8) -> Option<K>
None if the conversion failed.Source§fn convert(
&self,
layouter: &mut impl Layouter<F>,
x: &AssignedByte<F>,
) -> Result<AssignedField<F, K, P>, Error>
fn convert( &self, layouter: &mut impl Layouter<F>, x: &AssignedByte<F>, ) -> Result<AssignedField<F, K, P>, Error>
Source§impl<F, CoreDecomposition, NativeArith> ConversionInstructions<F, AssignedCell<F, F>, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Conversion from AssignedNative to AssignedByte.
impl<F, CoreDecomposition, NativeArith> ConversionInstructions<F, AssignedCell<F, F>, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Conversion from AssignedNative to AssignedByte.
Source§fn convert_value(&self, x: &F) -> Option<u8>
fn convert_value(&self, x: &F) -> Option<u8>
None if the conversion failed.Source§fn convert(
&self,
layouter: &mut impl Layouter<F>,
x: &AssignedNative<F>,
) -> Result<AssignedByte<F>, Error>
fn convert( &self, layouter: &mut impl Layouter<F>, x: &AssignedNative<F>, ) -> Result<AssignedByte<F>, Error>
Source§impl<F: Debug + CircuitField> Debug for AssignedByte<F>
impl<F: Debug + CircuitField> Debug for AssignedByte<F>
Source§impl<F, CoreDecomposition, NativeArith> EqualityInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>> + EqualityInstructions<F, AssignedNative<F>>,
The set of EqualityInstructions for bytes.
impl<F, CoreDecomposition, NativeArith> EqualityInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>> + EqualityInstructions<F, AssignedNative<F>>,
The set of EqualityInstructions for bytes.
Source§fn is_equal(
&self,
layouter: &mut impl Layouter<F>,
byte1: &AssignedByte<F>,
byte2: &AssignedByte<F>,
) -> Result<AssignedBit<F>, Error>
fn is_equal( &self, layouter: &mut impl Layouter<F>, byte1: &AssignedByte<F>, byte2: &AssignedByte<F>, ) -> Result<AssignedBit<F>, Error>
Source§fn is_not_equal(
&self,
layouter: &mut impl Layouter<F>,
byte1: &AssignedByte<F>,
byte2: &AssignedByte<F>,
) -> Result<AssignedBit<F>, Error>
fn is_not_equal( &self, layouter: &mut impl Layouter<F>, byte1: &AssignedByte<F>, byte2: &AssignedByte<F>, ) -> Result<AssignedBit<F>, Error>
0 if the elements are equal, returns 1 otherwise.Source§fn is_equal_to_fixed(
&self,
layouter: &mut impl Layouter<F>,
byte: &AssignedByte<F>,
constant: u8,
) -> Result<AssignedBit<F>, Error>
fn is_equal_to_fixed( &self, layouter: &mut impl Layouter<F>, byte: &AssignedByte<F>, constant: u8, ) -> Result<AssignedBit<F>, Error>
1 iff the given element equals the given constant. Read moreSource§fn is_not_equal_to_fixed(
&self,
layouter: &mut impl Layouter<F>,
byte: &AssignedByte<F>,
constant: u8,
) -> Result<AssignedBit<F>, Error>
fn is_not_equal_to_fixed( &self, layouter: &mut impl Layouter<F>, byte: &AssignedByte<F>, constant: u8, ) -> Result<AssignedBit<F>, Error>
1 iff the given element is not equal to the given constant.Source§impl<F: CircuitField> From<&AssignedByte<F>> for AssignedNative<F>
impl<F: CircuitField> From<&AssignedByte<F>> for AssignedNative<F>
Source§fn from(value: &AssignedByte<F>) -> Self
fn from(value: &AssignedByte<F>) -> Self
Source§impl<F: CircuitField> From<AssignedBit<F>> for AssignedByte<F>
impl<F: CircuitField> From<AssignedBit<F>> for AssignedByte<F>
Source§fn from(value: AssignedBit<F>) -> Self
fn from(value: AssignedBit<F>) -> Self
Source§impl<F: CircuitField> From<AssignedByte<F>> for AssignedNative<F>
impl<F: CircuitField> From<AssignedByte<F>> for AssignedNative<F>
Source§fn from(value: AssignedByte<F>) -> Self
fn from(value: AssignedByte<F>) -> Self
Source§impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 20]> for RipeMD160Chip<F>
impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 20]> for RipeMD160Chip<F>
Source§fn hash(
&self,
layouter: &mut impl Layouter<F>,
inputs: &[AssignedByte<F>],
) -> Result<[AssignedByte<F>; 20], Error>
fn hash( &self, layouter: &mut impl Layouter<F>, inputs: &[AssignedByte<F>], ) -> Result<[AssignedByte<F>; 20], Error>
Source§impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 32]> for Sha256Chip<F>
impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 32]> for Sha256Chip<F>
Source§fn hash(
&self,
layouter: &mut impl Layouter<F>,
inputs: &[AssignedByte<F>],
) -> Result<[AssignedByte<F>; 32], Error>
fn hash( &self, layouter: &mut impl Layouter<F>, inputs: &[AssignedByte<F>], ) -> Result<[AssignedByte<F>; 32], Error>
Source§impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 64]> for Sha512Chip<F>
impl<F: CircuitField> HashInstructions<F, AssignedByte<F>, [AssignedByte<F>; 64]> for Sha512Chip<F>
Source§fn hash(
&self,
layouter: &mut impl Layouter<F>,
inputs: &[AssignedByte<F>],
) -> Result<[AssignedByte<F>; 64], Error>
fn hash( &self, layouter: &mut impl Layouter<F>, inputs: &[AssignedByte<F>], ) -> Result<[AssignedByte<F>; 64], Error>
Source§impl<F: CircuitField> InnerValue for AssignedByte<F>
impl<F: CircuitField> InnerValue for AssignedByte<F>
Source§impl<F: CircuitField> Instantiable<F> for AssignedByte<F>
impl<F: CircuitField> Instantiable<F> for AssignedByte<F>
Source§fn as_public_input(element: &u8) -> Vec<F>
fn as_public_input(element: &u8) -> Vec<F>
Source§fn from_public_input(fields: &[F]) -> Option<u8>
fn from_public_input(fields: &[F]) -> Option<u8>
None if fields does not
encode a valid element.Source§impl<F, CoreDecomposition, NativeArith> PublicInputInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: PublicInputInstructions<F, AssignedNative<F>> + ArithInstructions<F, AssignedNative<F>>,
Instructions for constraining bytes as public inputs.
impl<F, CoreDecomposition, NativeArith> PublicInputInstructions<F, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: PublicInputInstructions<F, AssignedNative<F>> + ArithInstructions<F, AssignedNative<F>>,
Instructions for constraining bytes as public inputs.
Source§fn as_public_input(
&self,
_layouter: &mut impl Layouter<F>,
assigned: &AssignedByte<F>,
) -> Result<Vec<AssignedNative<F>>, Error>
fn as_public_input( &self, _layouter: &mut impl Layouter<F>, assigned: &AssignedByte<F>, ) -> Result<Vec<AssignedNative<F>>, Error>
Source§fn constrain_as_public_input(
&self,
layouter: &mut impl Layouter<F>,
assigned: &AssignedByte<F>,
) -> Result<(), Error>
fn constrain_as_public_input( &self, layouter: &mut impl Layouter<F>, assigned: &AssignedByte<F>, ) -> Result<(), Error>
Source§fn assign_as_public_input(
&self,
layouter: &mut impl Layouter<F>,
value: Value<u8>,
) -> Result<AssignedByte<F>, Error>
fn assign_as_public_input( &self, layouter: &mut impl Layouter<F>, value: Value<u8>, ) -> Result<AssignedByte<F>, Error>
Source§impl<F, CoreDecomposition, NativeArith> UnsafeConversionInstructions<F, AssignedCell<F, F>, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Unsafe conversion from AssignedNative to AssignedByte.
impl<F, CoreDecomposition, NativeArith> UnsafeConversionInstructions<F, AssignedCell<F, F>, AssignedByte<F>> for NativeGadget<F, CoreDecomposition, NativeArith>where
F: CircuitField,
CoreDecomposition: CoreDecompositionInstructions<F>,
NativeArith: ArithInstructions<F, AssignedNative<F>>,
Unsafe conversion from AssignedNative to AssignedByte.
Source§fn convert_unsafe(
&self,
_layouter: &mut impl Layouter<F>,
x: &AssignedNative<F>,
) -> Result<AssignedByte<F>, Error>
fn convert_unsafe( &self, _layouter: &mut impl Layouter<F>, x: &AssignedNative<F>, ) -> Result<AssignedByte<F>, Error>
CAUTION: use only if you know what you are doing!
This function converts an AssignedNative to an AssignedByte
without adding any constraint to guarantee the “byteness” of the
assigned value.
It should be used only when the input x is already guaranteed to be a byte
Source§impl<F: CircuitField, const MAX_LEN: usize> VarHashInstructions<F, MAX_LEN, AssignedByte<F>, [AssignedByte<F>; 32], 64> for VarLenSha256Gadget<F>
impl<F: CircuitField, const MAX_LEN: usize> VarHashInstructions<F, MAX_LEN, AssignedByte<F>, [AssignedByte<F>; 32], 64> for VarLenSha256Gadget<F>
Source§fn varhash(
&self,
layouter: &mut impl Layouter<F>,
inputs: &AssignedVector<F, AssignedByte<F>, MAX_LEN, 64>,
) -> Result<[AssignedByte<F>; 32], Error>
fn varhash( &self, layouter: &mut impl Layouter<F>, inputs: &AssignedVector<F, AssignedByte<F>, MAX_LEN, 64>, ) -> Result<[AssignedByte<F>; 32], Error>
Source§impl<F: CircuitField> Vectorizable for AssignedByte<F>
impl<F: CircuitField> Vectorizable for AssignedByte<F>
Auto Trait Implementations§
impl<F> Freeze for AssignedByte<F>where
F: Freeze,
impl<F> RefUnwindSafe for AssignedByte<F>where
F: RefUnwindSafe,
impl<F> Send for AssignedByte<F>
impl<F> Sync for AssignedByte<F>
impl<F> Unpin for AssignedByte<F>where
F: Unpin,
impl<F> UnsafeUnpin for AssignedByte<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for AssignedByte<F>where
F: UnwindSafe,
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
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> 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> 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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> SyncDeps 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.