Skip to main content

RiscvAirId

Enum RiscvAirId 

Source
pub enum RiscvAirId {
Show 122 variants Program = 0, ShaExtend = 1, ShaExtendControl = 2, ShaExtendControlUser = 3, ShaCompress = 4, ShaCompressControl = 5, ShaCompressControlUser = 6, EdAddAssign = 7, EdAddAssignUser = 8, EdDecompress = 9, EdDecompressUser = 10, Secp256k1AddAssign = 11, Secp256k1AddAssignUser = 12, Secp256k1DoubleAssign = 13, Secp256k1DoubleAssignUser = 14, Secp256r1AddAssign = 15, Secp256r1AddAssignUser = 16, Secp256r1DoubleAssign = 17, Secp256r1DoubleAssignUser = 18, KeccakPermute = 19, KeccakPermuteControl = 20, KeccakPermuteControlUser = 21, Bn254AddAssign = 22, Bn254AddAssignUser = 23, Bn254DoubleAssign = 24, Bn254DoubleAssignUser = 25, Bls12381AddAssign = 26, Bls12381AddAssignUser = 27, Bls12381DoubleAssign = 28, Bls12381DoubleAssignUser = 29, Uint256MulMod = 30, Uint256MulModUser = 31, Uint256Ops = 32, Uint256OpsUser = 33, Bls12381FpOpAssign = 34, Bls12381FpOpAssignUser = 35, Bls12381Fp2AddSubAssign = 36, Bls12381Fp2AddSubAssignUser = 37, Bls12381Fp2MulAssign = 38, Bls12381Fp2MulAssignUser = 39, Bn254FpOpAssign = 40, Bn254FpOpAssignUser = 41, Bn254Fp2AddSubAssign = 42, Bn254Fp2AddSubAssignUser = 43, Bn254Fp2MulAssign = 44, Bn254Fp2MulAssignUser = 45, Poseidon2 = 46, Poseidon2User = 47, SyscallCore = 48, SyscallCoreUser = 49, SyscallPrecompile = 50, SyscallPrecompileUser = 51, DivRem = 52, DivRemUser = 53, Add = 54, AddUser = 55, Addi = 56, AddiUser = 57, Addw = 58, AddwUser = 59, Sub = 60, SubUser = 61, Subw = 62, SubwUser = 63, Bitwise = 64, BitwiseUser = 65, Mul = 66, MulUser = 67, ShiftRight = 68, ShiftRightUser = 69, ShiftLeft = 70, ShiftLeftUser = 71, Lt = 72, LtUser = 73, LoadByte = 74, LoadByteUser = 75, LoadHalf = 76, LoadHalfUser = 77, LoadWord = 78, LoadWordUser = 79, LoadX0 = 80, LoadX0User = 81, LoadDouble = 82, LoadDoubleUser = 83, StoreByte = 84, StoreByteUser = 85, StoreHalf = 86, StoreHalfUser = 87, StoreWord = 88, StoreWordUser = 89, StoreDouble = 90, StoreDoubleUser = 91, UType = 92, UTypeUser = 93, Branch = 94, BranchUser = 95, Jal = 96, JalUser = 97, Jalr = 98, JalrUser = 99, SyscallInstrs = 100, SyscallInstrsUser = 101, MemoryBump = 102, StateBump = 103, MemoryGlobalInit = 104, MemoryGlobalFinalize = 105, MemoryLocal = 106, Global = 107, Byte = 108, Range = 109, AluX0 = 110, AluX0User = 111, Mprotect = 112, SigReturn = 113, InstructionDecode = 114, InstructionFetch = 115, PageProt = 116, PageProtLocal = 117, PageProtGlobalInit = 118, PageProtGlobalFinalize = 119, TrapExec = 120, TrapMem = 121,
}
Expand description

RV64IM AIR Identifiers.

These identifiers are for the various chips in the rv64im prover. We need them in the executor to compute the memory cost of the current shard of execution.

The CoreAirIds are the AIRs that are not part of precompile shards and not the program or byte AIR.

Variants§

§

Program = 0

The program chip.

§

ShaExtend = 1

The SHA-256 extend chip.

§

ShaExtendControl = 2

The sha extend control chip.

§

ShaExtendControlUser = 3

The sha extend control chip for user mode.

§

ShaCompress = 4

The SHA-256 compress chip.

§

ShaCompressControl = 5

The sha compress control chip.

§

ShaCompressControlUser = 6

The sha compress control chip for user mode.

§

EdAddAssign = 7

The Edwards add assign chip.

§

EdAddAssignUser = 8

The Edwards add assign chip for user mode.

§

EdDecompress = 9

The Edwards decompress chip.

§

EdDecompressUser = 10

The Edwards decompress chip for user mode.

§

Secp256k1AddAssign = 11

The secp256k1 add assign chip.

§

Secp256k1AddAssignUser = 12

The secp256k1 add assign chip for user mode.

§

Secp256k1DoubleAssign = 13

The secp256k1 double assign chip.

§

Secp256k1DoubleAssignUser = 14

The secp256k1 double assign chip for user mode.

§

Secp256r1AddAssign = 15

The secp256r1 add assign chip.

§

Secp256r1AddAssignUser = 16

The secp256r1 add assign chip for user mode.

§

Secp256r1DoubleAssign = 17

The secp256r1 double assign chip.

§

Secp256r1DoubleAssignUser = 18

The secp256r1 double assign chip for user mode.

§

KeccakPermute = 19

The Keccak permute chip.

§

KeccakPermuteControl = 20

The keccak permute control chip.

§

KeccakPermuteControlUser = 21

The keccak permute control chip for user mode.

§

Bn254AddAssign = 22

The bn254 add assign chip.

§

Bn254AddAssignUser = 23

The bn254 add assign chip for user mode.

§

Bn254DoubleAssign = 24

The bn254 double assign chip.

§

Bn254DoubleAssignUser = 25

The bn254 double assign chip for user mode.

§

Bls12381AddAssign = 26

The bls12-381 add assign chip.

§

Bls12381AddAssignUser = 27

The bls12-381 add assign chip for user mode.

§

Bls12381DoubleAssign = 28

The bls12-381 double assign chip.

§

Bls12381DoubleAssignUser = 29

The bls12-381 double assign chip for user mode.

§

Uint256MulMod = 30

The uint256 mul mod chip.

§

Uint256MulModUser = 31

The uint256 mul mod chip for user mode.

§

Uint256Ops = 32

The uint256 ops chip.

§

Uint256OpsUser = 33

The uint256 ops chip for user mode.

§

Bls12381FpOpAssign = 34

The bls12-381 fp op assign chip.

§

Bls12381FpOpAssignUser = 35

The bls12-381 fp op assign chip for user mode.

§

Bls12381Fp2AddSubAssign = 36

The bls12-381 fp2 add sub assign chip.

§

Bls12381Fp2AddSubAssignUser = 37

The bls12-381 fp2 add sub assign chip for user mode.

§

Bls12381Fp2MulAssign = 38

The bls12-381 fp2 mul assign chip.

§

Bls12381Fp2MulAssignUser = 39

The bls12-381 fp2 mul assign chip for user mode.

§

Bn254FpOpAssign = 40

The bn254 fp op assign chip.

§

Bn254FpOpAssignUser = 41

The bn254 fp op assign chip for user mode.

§

Bn254Fp2AddSubAssign = 42

The bn254 fp2 add sub assign chip.

§

Bn254Fp2AddSubAssignUser = 43

The bn254 fp2 add sub assign chip for user mode.

§

Bn254Fp2MulAssign = 44

The bn254 fp2 mul assign chip.

§

Bn254Fp2MulAssignUser = 45

The bn254 fp2 mul assign chip for user mode.

§

Poseidon2 = 46

The poseidon2 chip.

§

Poseidon2User = 47

The poseidon2 chip for user mode.

§

SyscallCore = 48

The syscall core chip.

§

SyscallCoreUser = 49

The syscall core chip for user mode.

§

SyscallPrecompile = 50

The syscall precompile chip.

§

SyscallPrecompileUser = 51

The syscall precompile chip for user mode.

§

DivRem = 52

The div rem chip.

§

DivRemUser = 53

The div rem chip for user mode.

§

Add = 54

The add chip.

§

AddUser = 55

The add chip for user mode.

§

Addi = 56

The addi chip.

§

AddiUser = 57

The addi chip for user mode.

§

Addw = 58

The addw chip.

§

AddwUser = 59

The addw chip for user mode.

§

Sub = 60

The sub chip.

§

SubUser = 61

The sub chip for user mode.

§

Subw = 62

The subw chip.

§

SubwUser = 63

The subw chip for user mode.

§

Bitwise = 64

The bitwise chip.

§

BitwiseUser = 65

The bitwise chip for user mode.

§

Mul = 66

The mul chip.

§

MulUser = 67

The mul chip for user mode.

§

ShiftRight = 68

The shift right chip.

§

ShiftRightUser = 69

The shift right chip for user mode.

§

ShiftLeft = 70

The shift left chip.

§

ShiftLeftUser = 71

The shift left chip for user mode.

§

Lt = 72

The lt chip.

§

LtUser = 73

The lt chip for user mode.

§

LoadByte = 74

The load byte chip.

§

LoadByteUser = 75

The load byte chip for user mode.

§

LoadHalf = 76

The load half chip.

§

LoadHalfUser = 77

The load half chip for user mode.

§

LoadWord = 78

The load word chip.

§

LoadWordUser = 79

The load word chip for user mode.

§

LoadX0 = 80

The load x0 chip.

§

LoadX0User = 81

The load x0 chip for user mode.

§

LoadDouble = 82

The load double chip.

§

LoadDoubleUser = 83

The load double chip for user mode.

§

StoreByte = 84

The store byte chip.

§

StoreByteUser = 85

The store byte chip for user mode.

§

StoreHalf = 86

The store half chip.

§

StoreHalfUser = 87

The store half chip for user mode.

§

StoreWord = 88

The store word chip.

§

StoreWordUser = 89

The store word chip for user mode.

§

StoreDouble = 90

The store double chip.

§

StoreDoubleUser = 91

The store double chip for user mode.

§

UType = 92

The utype chip.

§

UTypeUser = 93

The utype chip for user mode.

§

Branch = 94

The branch chip.

§

BranchUser = 95

The branch chip for user mode.

§

Jal = 96

The jal chip.

§

JalUser = 97

The jal chip for user mode.

§

Jalr = 98

The jalr chip.

§

JalrUser = 99

The jalr chip for user mode.

§

SyscallInstrs = 100

The syscall instructions chip.

§

SyscallInstrsUser = 101

The syscall instructions chip for user mode.

§

MemoryBump = 102

The memory bump chip.

§

StateBump = 103

The state bump chip.

§

MemoryGlobalInit = 104

The memory global init chip.

§

MemoryGlobalFinalize = 105

The memory global finalize chip.

§

MemoryLocal = 106

The memory local chip.

§

Global = 107

The global chip.

§

Byte = 108

The byte chip.

§

Range = 109

The range chip.

§

AluX0 = 110

The ALU x0 chip (all ALU ops with rd = x0).

§

AluX0User = 111

The ALU x0 chip (all ALU ops with rd = x0) for user mode.

§

Mprotect = 112

The mprotect chip.

§

SigReturn = 113

The sigreturn chip.

§

InstructionDecode = 114

The instruction decode chip.

§

InstructionFetch = 115

The instruction fetch chip.

§

PageProt = 116

The page prot chip.

§

PageProtLocal = 117

The page prot local chip.

§

PageProtGlobalInit = 118

The page prot global init chip.

§

PageProtGlobalFinalize = 119

The page prot global finalize chip.

§

TrapExec = 120

The trap exec chip.

§

TrapMem = 121

The trap memory chip.

Implementations§

Source§

impl RiscvAirId

Source

pub fn core() -> Vec<RiscvAirId>

Returns the AIRs that are not part of precompile shards and not the program or byte AIR.

Source

pub fn is_core(self) -> bool

Whether the ID represents a core AIR.

Source

pub fn is_memory(self) -> bool

Whether the ID represents a memory AIR.

Source

pub fn is_precompile(self) -> bool

Whether the ID represents a precompile AIR.

Source

pub fn rows_per_event(&self) -> usize

The number of rows in the AIR produced by each event.

Source

pub fn control_air_id(self, page_protect_enabled: bool) -> Option<RiscvAirId>

Get the ID of the AIR used in the syscall control implementation.

Source

pub fn as_str(&self) -> &'static str

Returns the string representation of the AIR.

Trait Implementations§

Source§

impl Clone for RiscvAirId

Source§

fn clone(&self) -> RiscvAirId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RiscvAirId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DeepSizeOf for RiscvAirId

Source§

fn deep_size_of_children(&self, context: &mut Context) -> usize

Returns an estimation of the heap-managed storage of this object. This does not include the size of the object itself. Read more
Source§

fn deep_size_of(&self) -> usize

Returns an estimation of a total size of memory owned by the object, including heap-managed storage. Read more
Source§

impl<'de> Deserialize<'de> for RiscvAirId

Source§

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 Display for RiscvAirId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult

Formats the value using the given formatter. Read more
Source§

impl Enum for RiscvAirId

Source§

const LENGTH: usize

Length of the enum.
Source§

fn from_usize(value: usize) -> Self

Takes an usize, and returns an element matching into_usize function.
Source§

fn into_usize(self) -> usize

Returns an unique identifier for a value within range of 0..Array::LENGTH.
Source§

impl<V> EnumArray<V> for RiscvAirId

Source§

type Array = [V; 122]

Representation of an enum map for type V.
Source§

impl<'_derivative_strum> From<&'_derivative_strum RiscvAirId> for &'static str

Source§

fn from(x: &'_derivative_strum RiscvAirId) -> &'static str

Converts to this type from the input type.
Source§

impl From<CoreAirId> for RiscvAirId

Source§

fn from(child: CoreAirId) -> Self

Converts to this type from the input type.
Source§

impl From<RiscvAirId> for &'static str

Source§

fn from(x: RiscvAirId) -> &'static str

Converts to this type from the input type.
Source§

impl FromStr for RiscvAirId

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for RiscvAirId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoEnumIterator for RiscvAirId

Source§

impl Ord for RiscvAirId

Source§

fn cmp(&self, other: &RiscvAirId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<CoreAirId> for RiscvAirId

Source§

fn eq(&self, other: &CoreAirId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<RiscvAirId> for CoreAirId

Source§

fn eq(&self, other: &RiscvAirId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for RiscvAirId

Source§

fn eq(&self, other: &RiscvAirId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for RiscvAirId

Source§

fn partial_cmp(&self, other: &RiscvAirId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for RiscvAirId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<RiscvAirId> for CoreAirId

Source§

type Error = CoreAirIdConvertError

The type returned in the event of a conversion error.
Source§

fn try_from( parent: RiscvAirId, ) -> Result<Self, <Self as TryFrom<RiscvAirId>>::Error>

Performs the conversion.
Source§

impl Copy for RiscvAirId

Source§

impl Eq for RiscvAirId

Source§

impl StructuralPartialEq for RiscvAirId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> FmtForward for T

Source§

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,

Causes self to use its Display implementation when Debug-formatted.
Source§

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,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

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,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

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,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<Challenger, A> FromChallenger<Challenger, A> for Challenger
where Challenger: Clone,

Source§

fn from_challenger(challenger: &Challenger, _backend: &A) -> Challenger

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where 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) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Separable for T
where T: Display,

Source§

fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String

Adds separators according to the given SeparatorPolicy. Read more
Source§

fn separate_with_commas(&self) -> String

Inserts a comma every three digits from the right. Read more
Source§

fn separate_with_spaces(&self) -> String

Inserts a space every three digits from the right. Read more
Source§

fn separate_with_dots(&self) -> String

Inserts a period every three digits from the right. Read more
Source§

fn separate_with_underscores(&self) -> String

Inserts an underscore every three digits from the right. Read more
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

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

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
where Self: Borrow<B>, B: ?Sized,

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
where Self: BorrowMut<B>, B: ?Sized,

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
where Self: AsRef<R>, R: ?Sized,

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
where Self: AsMut<R>, R: ?Sized,

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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> JsonSchemaMaybe for T

Source§

impl<T, V> OwnedBorrow<T> for V
where V: Borrow<T> + Send + Sync + Clone + 'static, T: ?Sized,

Source§

impl<T> TaskInput for T
where T: 'static + Send + Sync,