pub type TryResult<'a, T> = ControlFlow<TryError<'a>, T>;Expand description
Result of methods that are not allowed to call JavaScript or perform garbage collection.
Aliased Type§
pub enum TryResult<'a, T> {
Continue(T),
Break(TryError<'a>),
}Variants§
Continue(T)
Move on to the next phase of the operation as normal.
Break(TryError<'a>)
Exit the operation without running subsequent phases.
Trait Implementations§
Source§impl<'a> From<TryGetResult<'a>> for TryResult<'a, TryGetResult<'a>>
impl<'a> From<TryGetResult<'a>> for TryResult<'a, TryGetResult<'a>>
Source§fn from(value: TryGetResult<'a>) -> Self
fn from(value: TryGetResult<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TryHasResult<'a>> for TryResult<'a, TryHasBindingContinue<'a>>
impl<'a> From<TryHasResult<'a>> for TryResult<'a, TryHasBindingContinue<'a>>
Source§fn from(value: TryHasResult<'a>) -> Self
fn from(value: TryHasResult<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TryHasResult<'a>> for TryResult<'a, TryHasResult<'a>>
impl<'a> From<TryHasResult<'a>> for TryResult<'a, TryHasResult<'a>>
Source§fn from(value: TryHasResult<'a>) -> Self
fn from(value: TryHasResult<'a>) -> Self
Converts to this type from the input type.