pub struct TransitionStore<N: Network, T: TransitionStorage<N>> { /* private fields */ }
Expand description
The transition store.
Implementations§
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn open<S: Clone + Into<StorageMode>>(storage: S) -> Result<Self>
pub fn open<S: Clone + Into<StorageMode>>(storage: S) -> Result<Self>
Initializes the transition store.
Sourcepub fn insert(&self, transition: &Transition<N>) -> Result<()>
pub fn insert(&self, transition: &Transition<N>) -> Result<()>
Stores the given transition
into storage.
Sourcepub fn remove(&self, transition_id: &N::TransitionID) -> Result<()>
pub fn remove(&self, transition_id: &N::TransitionID) -> Result<()>
Removes the input for the given transition ID
.
Sourcepub fn start_atomic(&self)
pub fn start_atomic(&self)
Starts an atomic batch write operation.
Sourcepub fn is_atomic_in_progress(&self) -> bool
pub fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
Sourcepub fn atomic_checkpoint(&self)
pub fn atomic_checkpoint(&self)
Checkpoints the atomic batch.
Sourcepub fn clear_latest_checkpoint(&self)
pub fn clear_latest_checkpoint(&self)
Clears the latest atomic batch checkpoint.
Sourcepub fn atomic_rewind(&self)
pub fn atomic_rewind(&self)
Rewinds the atomic batch to the previous checkpoint.
Sourcepub fn abort_atomic(&self)
pub fn abort_atomic(&self)
Aborts an atomic batch write operation.
Sourcepub fn finish_atomic(&self) -> Result<()>
pub fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
Sourcepub fn storage_mode(&self) -> &StorageMode
pub fn storage_mode(&self) -> &StorageMode
Returns the storage mode.
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn find_transition_id(&self, id: &Field<N>) -> Result<N::TransitionID>
pub fn find_transition_id(&self, id: &Field<N>) -> Result<N::TransitionID>
Returns the transition ID that contains the given input ID
or output ID
.
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn get_transition(
&self,
transition_id: &N::TransitionID,
) -> Result<Option<Transition<N>>>
pub fn get_transition( &self, transition_id: &N::TransitionID, ) -> Result<Option<Transition<N>>>
Returns the transition for the given transition ID
.
Sourcepub fn get_program_id(
&self,
transition_id: &N::TransitionID,
) -> Result<Option<ProgramID<N>>>
pub fn get_program_id( &self, transition_id: &N::TransitionID, ) -> Result<Option<ProgramID<N>>>
Returns the program ID for the given transition ID
.
Sourcepub fn get_function_name(
&self,
transition_id: &N::TransitionID,
) -> Result<Option<Identifier<N>>>
pub fn get_function_name( &self, transition_id: &N::TransitionID, ) -> Result<Option<Identifier<N>>>
Returns the function name for the given transition ID
.
Sourcepub fn get_input_ids(
&self,
transition_id: &N::TransitionID,
) -> Result<Vec<Field<N>>>
pub fn get_input_ids( &self, transition_id: &N::TransitionID, ) -> Result<Vec<Field<N>>>
Returns the input IDs for the given transition ID
.
Sourcepub fn get_inputs(
&self,
transition_id: &N::TransitionID,
) -> Result<Vec<Input<N>>>
pub fn get_inputs( &self, transition_id: &N::TransitionID, ) -> Result<Vec<Input<N>>>
Returns the inputs for the given transition ID
.
Sourcepub fn get_output_ids(
&self,
transition_id: &N::TransitionID,
) -> Result<Vec<Field<N>>>
pub fn get_output_ids( &self, transition_id: &N::TransitionID, ) -> Result<Vec<Field<N>>>
Returns the output IDs for the given transition ID
.
Sourcepub fn get_outputs(
&self,
transition_id: &N::TransitionID,
) -> Result<Vec<Output<N>>>
pub fn get_outputs( &self, transition_id: &N::TransitionID, ) -> Result<Vec<Output<N>>>
Returns the outputs for the given transition ID
.
Sourcepub fn get_record(
&self,
commitment: &Field<N>,
) -> Result<Option<Record<N, Ciphertext<N>>>>
pub fn get_record( &self, commitment: &Field<N>, ) -> Result<Option<Record<N, Ciphertext<N>>>>
Returns the record for the given commitment
.
If the record exists, Ok(Some(record))
is returned.
If the record was purged, Ok(None)
is returned.
If the record does not exist, Err(error)
is returned.
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn contains_transition_id(
&self,
transition_id: &N::TransitionID,
) -> Result<bool>
pub fn contains_transition_id( &self, transition_id: &N::TransitionID, ) -> Result<bool>
Returns true
if the given transition ID exists.
Sourcepub fn contains_input_id(&self, input_id: &Field<N>) -> Result<bool>
pub fn contains_input_id(&self, input_id: &Field<N>) -> Result<bool>
Returns true
if the given input ID exists.
Sourcepub fn contains_serial_number(&self, serial_number: &Field<N>) -> Result<bool>
pub fn contains_serial_number(&self, serial_number: &Field<N>) -> Result<bool>
Returns true
if the given serial number exists.
Sourcepub fn contains_tag(&self, tag: &Field<N>) -> Result<bool>
pub fn contains_tag(&self, tag: &Field<N>) -> Result<bool>
Returns true
if the given tag exists.
Sourcepub fn contains_output_id(&self, output_id: &Field<N>) -> Result<bool>
pub fn contains_output_id(&self, output_id: &Field<N>) -> Result<bool>
Returns true
if the given output ID exists.
Sourcepub fn contains_commitment(&self, commitment: &Field<N>) -> Result<bool>
pub fn contains_commitment(&self, commitment: &Field<N>) -> Result<bool>
Returns true
if the given commitment exists.
Sourcepub fn contains_checksum(&self, checksum: &Field<N>) -> bool
pub fn contains_checksum(&self, checksum: &Field<N>) -> bool
Returns true
if the given checksum exists.
Sourcepub fn contains_nonce(&self, nonce: &Group<N>) -> Result<bool>
pub fn contains_nonce(&self, nonce: &Group<N>) -> Result<bool>
Returns true
if the given nonce exists.
Sourcepub fn contains_tpk(&self, tpk: &Group<N>) -> Result<bool>
pub fn contains_tpk(&self, tpk: &Group<N>) -> Result<bool>
Returns true
if the given transition public key exists.
Sourcepub fn contains_tcm(&self, tcm: &Field<N>) -> Result<bool>
pub fn contains_tcm(&self, tcm: &Field<N>) -> Result<bool>
Returns true
if the given transition commitment exists.
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn transition_ids(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, N::TransitionID>>
pub fn transition_ids( &self, ) -> impl '_ + Iterator<Item = Cow<'_, N::TransitionID>>
Returns an iterator over the transition IDs, for all transitions.
Sourcepub fn input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the input IDs, for all transition inputs.
Sourcepub fn constant_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn constant_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the constant input IDs, for all transition inputs that are constant.
Sourcepub fn public_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn public_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the public input IDs, for all transition inputs that are public.
Sourcepub fn private_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn private_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the private input IDs, for all transition inputs that are private.
Sourcepub fn serial_numbers(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn serial_numbers(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the serial numbers, for all transition inputs that are records.
Sourcepub fn external_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn external_input_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the external record input IDs, for all transition inputs that are external records.
Sourcepub fn output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the output IDs, for all transition outputs.
Sourcepub fn constant_output_ids(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn constant_output_ids( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the constant output IDs, for all transition outputs that are constant.
Sourcepub fn public_output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn public_output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the public output IDs, for all transition outputs that are public.
Sourcepub fn private_output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn private_output_ids(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the private output IDs, for all transition outputs that are private.
Sourcepub fn commitments(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn commitments(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the commitments, for all transition outputs that are records.
Sourcepub fn external_output_ids(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn external_output_ids( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the external record output IDs, for all transition outputs that are external records.
Source§impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
impl<N: Network, T: TransitionStorage<N>> TransitionStore<N, T>
Sourcepub fn constant_inputs(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
pub fn constant_inputs( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
Returns an iterator over the constant inputs, for all transitions.
Sourcepub fn public_inputs(&self) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
pub fn public_inputs(&self) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
Returns an iterator over the constant inputs, for all transitions.
Sourcepub fn private_inputs(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Ciphertext<N>>>
pub fn private_inputs( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Ciphertext<N>>>
Returns an iterator over the private inputs, for all transitions.
Returns an iterator over the tags, for all transition inputs that are records.
Sourcepub fn constant_outputs(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
pub fn constant_outputs( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
Returns an iterator over the constant outputs, for all transitions.
Sourcepub fn public_outputs(&self) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
pub fn public_outputs(&self) -> impl '_ + Iterator<Item = Cow<'_, Plaintext<N>>>
Returns an iterator over the constant outputs, for all transitions.
Sourcepub fn private_outputs(
&self,
) -> impl '_ + Iterator<Item = Cow<'_, Ciphertext<N>>>
pub fn private_outputs( &self, ) -> impl '_ + Iterator<Item = Cow<'_, Ciphertext<N>>>
Returns an iterator over the private outputs, for all transitions.
Sourcepub fn checksums(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
pub fn checksums(&self) -> impl '_ + Iterator<Item = Cow<'_, Field<N>>>
Returns an iterator over the checksums, for all transition outputs that are records.
Sourcepub fn nonces(&self) -> impl '_ + Iterator<Item = Cow<'_, Group<N>>>
pub fn nonces(&self) -> impl '_ + Iterator<Item = Cow<'_, Group<N>>>
Returns an iterator over the nonces, for all transition outputs that are records.
Sourcepub fn records(
&self,
) -> impl '_ + Iterator<Item = (Cow<'_, Field<N>>, Cow<'_, Record<N, Ciphertext<N>>>)>
pub fn records( &self, ) -> impl '_ + Iterator<Item = (Cow<'_, Field<N>>, Cow<'_, Record<N, Ciphertext<N>>>)>
Returns an iterator over the (commitment, record)
pairs, for all transition outputs that are records.
Sourcepub fn tpks(&self) -> impl '_ + Iterator<Item = Cow<'_, Group<N>>>
pub fn tpks(&self) -> impl '_ + Iterator<Item = Cow<'_, Group<N>>>
Returns an iterator over the transition public keys, for all transitions.
Trait Implementations§
Source§impl<N: Clone + Network, T: Clone + TransitionStorage<N>> Clone for TransitionStore<N, T>where
T::LocatorMap: Clone,
T::InputStorage: Clone,
T::OutputStorage: Clone,
T::TPKMap: Clone,
T::ReverseTPKMap: Clone,
T::TCMMap: Clone,
T::ReverseTCMMap: Clone,
T::SCMMap: Clone,
impl<N: Clone + Network, T: Clone + TransitionStorage<N>> Clone for TransitionStore<N, T>where
T::LocatorMap: Clone,
T::InputStorage: Clone,
T::OutputStorage: Clone,
T::TPKMap: Clone,
T::ReverseTPKMap: Clone,
T::TCMMap: Clone,
T::ReverseTCMMap: Clone,
T::SCMMap: Clone,
Source§fn clone(&self) -> TransitionStore<N, T>
fn clone(&self) -> TransitionStore<N, T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<N, T> Freeze for TransitionStore<N, T>where
<T as TransitionStorage<N>>::LocatorMap: Freeze,
<T as TransitionStorage<N>>::TPKMap: Freeze,
<T as TransitionStorage<N>>::ReverseTPKMap: Freeze,
<T as TransitionStorage<N>>::TCMMap: Freeze,
<T as TransitionStorage<N>>::ReverseTCMMap: Freeze,
<T as TransitionStorage<N>>::SCMMap: Freeze,
T: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ConstantMap: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PublicMap: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PrivateMap: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordMap: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordTagMap: Freeze,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ExternalRecordMap: Freeze,
<T as TransitionStorage<N>>::InputStorage: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ConstantMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PublicMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PrivateMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordNonceMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ExternalRecordMap: Freeze,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::FutureMap: Freeze,
<T as TransitionStorage<N>>::OutputStorage: Freeze,
impl<N, T> RefUnwindSafe for TransitionStore<N, T>where
<T as TransitionStorage<N>>::LocatorMap: RefUnwindSafe,
<T as TransitionStorage<N>>::TPKMap: RefUnwindSafe,
<T as TransitionStorage<N>>::ReverseTPKMap: RefUnwindSafe,
<T as TransitionStorage<N>>::TCMMap: RefUnwindSafe,
<T as TransitionStorage<N>>::ReverseTCMMap: RefUnwindSafe,
<T as TransitionStorage<N>>::SCMMap: RefUnwindSafe,
T: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ConstantMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PublicMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PrivateMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordTagMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ExternalRecordMap: RefUnwindSafe,
<T as TransitionStorage<N>>::InputStorage: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ConstantMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PublicMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PrivateMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordNonceMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ExternalRecordMap: RefUnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::FutureMap: RefUnwindSafe,
<T as TransitionStorage<N>>::OutputStorage: RefUnwindSafe,
impl<N, T> Send for TransitionStore<N, T>
impl<N, T> Sync for TransitionStore<N, T>
impl<N, T> Unpin for TransitionStore<N, T>where
<T as TransitionStorage<N>>::LocatorMap: Unpin,
<T as TransitionStorage<N>>::TPKMap: Unpin,
<T as TransitionStorage<N>>::ReverseTPKMap: Unpin,
<T as TransitionStorage<N>>::TCMMap: Unpin,
<T as TransitionStorage<N>>::ReverseTCMMap: Unpin,
<T as TransitionStorage<N>>::SCMMap: Unpin,
T: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ConstantMap: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PublicMap: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PrivateMap: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordMap: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordTagMap: Unpin,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ExternalRecordMap: Unpin,
<T as TransitionStorage<N>>::InputStorage: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ConstantMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PublicMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PrivateMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordNonceMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ExternalRecordMap: Unpin,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::FutureMap: Unpin,
<T as TransitionStorage<N>>::OutputStorage: Unpin,
impl<N, T> UnwindSafe for TransitionStore<N, T>where
<T as TransitionStorage<N>>::LocatorMap: UnwindSafe,
<T as TransitionStorage<N>>::TPKMap: UnwindSafe,
<T as TransitionStorage<N>>::ReverseTPKMap: UnwindSafe,
<T as TransitionStorage<N>>::TCMMap: UnwindSafe,
<T as TransitionStorage<N>>::ReverseTCMMap: UnwindSafe,
<T as TransitionStorage<N>>::SCMMap: UnwindSafe,
T: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ConstantMap: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PublicMap: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::PrivateMap: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordMap: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::RecordTagMap: UnwindSafe,
<<T as TransitionStorage<N>>::InputStorage as InputStorage<N>>::ExternalRecordMap: UnwindSafe,
<T as TransitionStorage<N>>::InputStorage: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ConstantMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PublicMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::PrivateMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::RecordNonceMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::ExternalRecordMap: UnwindSafe,
<<T as TransitionStorage<N>>::OutputStorage as OutputStorage<N>>::FutureMap: UnwindSafe,
<T as TransitionStorage<N>>::OutputStorage: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more