Skip to main content

ExecutionRecord

Struct ExecutionRecord 

Source
pub struct ExecutionRecord {
Show 52 fields pub program: Arc<Program>, pub cpu_event_count: u32, pub add_events: Vec<(AluEvent, RTypeRecord)>, pub addw_events: Vec<(AluEvent, ALUTypeRecord)>, pub addi_events: Vec<(AluEvent, ITypeRecord)>, pub mul_events: Vec<(AluEvent, RTypeRecord)>, pub sub_events: Vec<(AluEvent, RTypeRecord)>, pub subw_events: Vec<(AluEvent, RTypeRecord)>, pub bitwise_events: Vec<(AluEvent, ALUTypeRecord)>, pub shift_left_events: Vec<(AluEvent, ALUTypeRecord)>, pub shift_right_events: Vec<(AluEvent, ALUTypeRecord)>, pub divrem_events: Vec<(AluEvent, RTypeRecord)>, pub lt_events: Vec<(AluEvent, ALUTypeRecord)>, pub memory_load_byte_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_load_half_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_load_word_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_load_x0_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_load_double_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_store_byte_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_store_half_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_store_word_events: Vec<(MemInstrEvent, ITypeRecord)>, pub memory_store_double_events: Vec<(MemInstrEvent, ITypeRecord)>, pub utype_events: Vec<(UTypeEvent, JTypeRecord)>, pub branch_events: Vec<(BranchEvent, ITypeRecord)>, pub jal_events: Vec<(JumpEvent, JTypeRecord)>, pub jalr_events: Vec<(JumpEvent, ITypeRecord)>, pub byte_lookups: HashMap<ByteLookupEvent, usize>, pub precompile_events: PrecompileEvents, pub global_memory_initialize_events: Vec<MemoryInitializeFinalizeEvent>, pub global_memory_finalize_events: Vec<MemoryInitializeFinalizeEvent>, pub global_page_prot_initialize_events: Vec<PageProtInitializeFinalizeEvent>, pub global_page_prot_finalize_events: Vec<PageProtInitializeFinalizeEvent>, pub cpu_local_memory_access: Vec<MemoryLocalEvent>, pub cpu_local_page_prot_access: Vec<PageProtLocalEvent>, pub syscall_events: Vec<(SyscallEvent, RTypeRecord)>, pub global_interaction_events: Vec<GlobalInteractionEvent>, pub instruction_fetch_events: Vec<(InstructionFetchEvent, MemoryAccessRecord)>, pub instruction_decode_events: Vec<InstructionDecodeEvent>, pub global_cumulative_sum: Arc<Mutex<SepticDigest<u32>>>, pub global_interaction_event_count: u32, pub bump_memory_events: Vec<(MemoryRecordEnum, u64, bool)>, pub bump_state_events: Vec<(u64, u64, bool, u64)>, pub public_values: PublicValues<u32, u64, u64, u32>, pub next_nonce: u64, pub shape: Option<Shape<RiscvAirId>>, pub estimated_trace_area: u64, pub initial_timestamp: u64, pub last_timestamp: u64, pub pc_start: Option<u64>, pub next_pc: u64, pub exit_code: u32, pub global_dependencies_opt: bool,
}
Expand description

A record of the execution of a program.

The trace of the execution is represented as a list of “events” that occur every cycle.

Fields§

§program: Arc<Program>

The program.

§cpu_event_count: u32

The number of CPU related events.

§add_events: Vec<(AluEvent, RTypeRecord)>

A trace of the ADD, and ADDI events.

§addw_events: Vec<(AluEvent, ALUTypeRecord)>

A trace of the ADDW events.

§addi_events: Vec<(AluEvent, ITypeRecord)>

A trace of the ADDI events.

§mul_events: Vec<(AluEvent, RTypeRecord)>

A trace of the MUL events.

§sub_events: Vec<(AluEvent, RTypeRecord)>

A trace of the SUB events.

§subw_events: Vec<(AluEvent, RTypeRecord)>

A trace of the SUBW events.

§bitwise_events: Vec<(AluEvent, ALUTypeRecord)>

A trace of the XOR, XORI, OR, ORI, AND, and ANDI events.

§shift_left_events: Vec<(AluEvent, ALUTypeRecord)>

A trace of the SLL and SLLI events.

§shift_right_events: Vec<(AluEvent, ALUTypeRecord)>

A trace of the SRL, SRLI, SRA, and SRAI events.

§divrem_events: Vec<(AluEvent, RTypeRecord)>

A trace of the DIV, DIVU, REM, and REMU events.

§lt_events: Vec<(AluEvent, ALUTypeRecord)>

A trace of the SLT, SLTI, SLTU, and SLTIU events.

§memory_load_byte_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of load byte instructions.

§memory_load_half_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of load half instructions.

§memory_load_word_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of load word instructions.

§memory_load_x0_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of load instructions with op_a = x0.

§memory_load_double_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of load double instructions.

§memory_store_byte_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of store byte instructions.

§memory_store_half_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of store half instructions.

§memory_store_word_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of store word instructions.

§memory_store_double_events: Vec<(MemInstrEvent, ITypeRecord)>

A trace of store double instructions.

§utype_events: Vec<(UTypeEvent, JTypeRecord)>

A trace of the AUIPC and LUI events.

§branch_events: Vec<(BranchEvent, ITypeRecord)>

A trace of the branch events.

§jal_events: Vec<(JumpEvent, JTypeRecord)>

A trace of the JAL events.

§jalr_events: Vec<(JumpEvent, ITypeRecord)>

A trace of the JALR events.

§byte_lookups: HashMap<ByteLookupEvent, usize>

A trace of the byte lookups that are needed.

§precompile_events: PrecompileEvents

A trace of the precompile events.

§global_memory_initialize_events: Vec<MemoryInitializeFinalizeEvent>

A trace of the global memory initialize events.

§global_memory_finalize_events: Vec<MemoryInitializeFinalizeEvent>

A trace of the global memory finalize events.

§global_page_prot_initialize_events: Vec<PageProtInitializeFinalizeEvent>

A trace of the global page prot initialize events.

§global_page_prot_finalize_events: Vec<PageProtInitializeFinalizeEvent>

A trace of the global page prot finalize events.

§cpu_local_memory_access: Vec<MemoryLocalEvent>

A trace of all the shard’s local memory events.

§cpu_local_page_prot_access: Vec<PageProtLocalEvent>

A trace of all the local page prot events.

§syscall_events: Vec<(SyscallEvent, RTypeRecord)>

A trace of all the syscall events.

§global_interaction_events: Vec<GlobalInteractionEvent>

A trace of all the global interaction events.

§instruction_fetch_events: Vec<(InstructionFetchEvent, MemoryAccessRecord)>

A trace of all instruction fetch events.

§instruction_decode_events: Vec<InstructionDecodeEvent>

A trace of all instruction decode events.

§global_cumulative_sum: Arc<Mutex<SepticDigest<u32>>>

The global culmulative sum.

§global_interaction_event_count: u32

The global interaction event count.

§bump_memory_events: Vec<(MemoryRecordEnum, u64, bool)>

Memory records used to bump the timestamp of the register memory access.

§bump_state_events: Vec<(u64, u64, bool, u64)>

Record where the clk >> 24 or pc >> 16 has incremented.

§public_values: PublicValues<u32, u64, u64, u32>

The public values.

§next_nonce: u64

The next nonce to use for a new lookup.

§shape: Option<Shape<RiscvAirId>>

The shape of the proof.

§estimated_trace_area: u64

The estimated total trace area of the proof.

§initial_timestamp: u64

The initial timestamp of the shard.

§last_timestamp: u64

The final timestamp of the shard.

§pc_start: Option<u64>

The start program counter.

§next_pc: u64

The final program counter.

§exit_code: u32

The exit code.

§global_dependencies_opt: bool

Use optimized generate_dependencies for global chip.

Implementations§

Source§

impl ExecutionRecord

Source

pub fn new( program: Arc<Program>, proof_nonce: [u32; 4], global_dependencies_opt: bool, ) -> Self

Create a new ExecutionRecord.

Source

pub fn new_preallocated( program: Arc<Program>, proof_nonce: [u32; 4], global_dependencies_opt: bool, reservation_size: usize, ) -> Self

Create a new ExecutionRecord with preallocated event vecs.

Source

pub fn defer<'a>( &mut self, retain_presets: impl IntoIterator<Item = &'a RetainedEventsPreset>, ) -> ExecutionRecord

Take out events from the ExecutionRecord that should be deferred to a separate shard.

Note: we usually defer events that would increase the recursion cost significantly if included in every shard.

Source

pub fn split( &mut self, done: bool, last_record: &mut ExecutionRecord, can_pack_global_memory: bool, opts: &SplitOpts, ) -> Vec<ExecutionRecord>

Splits the deferred ExecutionRecord into multiple ExecutionRecords, each which contain a “reasonable” number of deferred events.

Source

pub fn fixed_log2_rows<F: PrimeField, A: MachineAir<F>>( &self, _air: &A, ) -> Option<usize>

Return the number of rows needed for a chip, according to the proof shape specified in the struct.

deprecated: TODO: remove this method.

Source

pub fn contains_cpu(&self) -> bool

Determines whether the execution record contains CPU events.

Source

pub fn add_precompile_event( &mut self, syscall_code: SyscallCode, syscall_event: SyscallEvent, event: PrecompileEvent, )

Add a precompile event to the execution record.

Source

pub fn get_precompile_events( &self, syscall_code: SyscallCode, ) -> &Vec<(SyscallEvent, PrecompileEvent)>

Get all the precompile events for a syscall code.

Source

pub fn get_local_mem_events(&self) -> impl Iterator<Item = &MemoryLocalEvent>

Get all the local memory events.

Source

pub fn get_local_page_prot_events( &self, ) -> impl Iterator<Item = &PageProtLocalEvent>

Get all the local page prot events.

Source

pub fn reset(&mut self)

Reset the record, without deallocating the event vecs.

Source§

impl ExecutionRecord

Source

pub fn finalize_public_values<F: PrimeField32>( &mut self, is_execution_shard: bool, )

Finalize the public values.

Trait Implementations§

Source§

impl ByteRecord for ExecutionRecord

Source§

fn add_byte_lookup_event(&mut self, blu_event: ByteLookupEvent)

Adds a new ByteLookupEvent to the record.
Source§

fn add_byte_lookup_events_from_maps( &mut self, new_events: Vec<&HashMap<ByteLookupEvent, usize>>, )

Adds a list of ByteLookupEvent maps to the record.
Source§

fn add_byte_lookup_events(&mut self, blu_events: Vec<ByteLookupEvent>)

Adds a list of ByteLookupEvents to the record.
Source§

fn add_u8_range_check(&mut self, a: u8, b: u8)

Adds a ByteLookupEvent to verify a and b are indeed bytes to the shard.
Source§

fn add_u16_range_check(&mut self, a: u16)

Adds a ByteLookupEvent to verify a is indeed u16.
Source§

fn add_bit_range_check(&mut self, a: u16, b: u8)

Adds a ByteLookupEvent to verify a is less than 2^b.
Source§

fn add_u8_range_checks(&mut self, bytes: &[u8])

Adds ByteLookupEvents to verify that all the bytes in the input slice are indeed bytes.
Source§

fn add_u8_range_checks_field<F: PrimeField32>(&mut self, field_values: &[F])

Adds ByteLookupEvents to verify that all the field elements in the input slice are indeed bytes.
Source§

fn add_u16_range_checks(&mut self, ls: &[u16])

Adds ByteLookupEvents to verify that all the bytes in the input slice are indeed u16s.
Source§

fn add_u16_range_checks_field<F: PrimeField32>(&mut self, field_values: &[F])

Adds ByteLookupEvents to verify that all the field elements in the input slice are indeed u16 values.
Source§

fn lookup_or(&mut self, b: u8, c: u8)

Adds a ByteLookupEvent to compute the bitwise OR of the two input values.
Source§

impl Clone for ExecutionRecord

Source§

fn clone(&self) -> ExecutionRecord

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecutionRecord

Source§

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

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

impl DeepSizeOf for ExecutionRecord

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 Default for ExecutionRecord

Source§

fn default() -> ExecutionRecord

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ExecutionRecord

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 MachineRecord for ExecutionRecord

Source§

fn public_values<F: AbstractField>(&self) -> Vec<F>

Retrieves the public values. This method is needed for the MachineRecord trait, since

Source§

fn eval_public_values<AB: SP1AirBuilder>(builder: &mut AB)

Constrains the public values.

Source§

fn stats(&self) -> HashMap<String, usize>

The statistics of the record.
Source§

fn append(&mut self, other: &mut ExecutionRecord)

Appends two records together.
Source§

fn interactions_in_public_values() -> Vec<InteractionKind>

The interaction kinds that appear in eval_public_values. Needed so that the shard verifier knows how much randomness to allocate for the LogUpGkr beta_seed challenge.
Source§

impl Serialize for ExecutionRecord

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

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<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<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> 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> 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,