Trait ResultAdditionalSpecFns

Source
pub trait ResultAdditionalSpecFns<T, E> {
    // Required methods
    spec fn is_Ok(&self) -> bool;
    spec fn get_Ok_0(&self) -> T;
    spec fn arrow_Ok_0(&self) -> T;
    spec fn is_Err(&self) -> bool;
    spec fn get_Err_0(&self) -> E;
    spec fn arrow_Err_0(&self) -> E;
}

Required Methodsยง

Source

spec fn is_Ok(&self) -> bool

๐Ÿ‘ŽDeprecated: is_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
Source

spec fn get_Ok_0(&self) -> T

๐Ÿ‘ŽDeprecated: get_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
Source

spec fn arrow_Ok_0(&self) -> T

Source

spec fn is_Err(&self) -> bool

๐Ÿ‘ŽDeprecated: is_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
Source

spec fn get_Err_0(&self) -> E

๐Ÿ‘ŽDeprecated: get_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
Source

spec fn arrow_Err_0(&self) -> E

Implementations on Foreign Typesยง

Sourceยง

impl<T, E> ResultAdditionalSpecFns<T, E> for Result<T, E>

Sourceยง

open spec fn is_Ok(&self) -> bool

๐Ÿ‘ŽDeprecated: is_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
{ is_variant(self, "Ok") }
Sourceยง

open spec fn get_Ok_0(&self) -> T

๐Ÿ‘ŽDeprecated: get_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
{ get_variant_field(self, "Ok", "0") }
Sourceยง

open spec fn arrow_Ok_0(&self) -> T

{ get_variant_field(self, "Ok", "0") }
Sourceยง

open spec fn is_Err(&self) -> bool

๐Ÿ‘ŽDeprecated: is_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
{ is_variant(self, "Err") }
Sourceยง

open spec fn get_Err_0(&self) -> E

๐Ÿ‘ŽDeprecated: get_Variant is deprecated - use -> or matches instead: https://verus-lang.github.io/verus/guide/datatypes_enum.html
{ get_variant_field(self, "Err", "0") }
Sourceยง

open spec fn arrow_Err_0(&self) -> E

{ get_variant_field(self, "Err", "0") }

Implementorsยง