Skip to content

Commit

Permalink
use Result<T,E> extern spec
Browse files Browse the repository at this point in the history
  • Loading branch information
enjhnsn2 committed Dec 12, 2024
1 parent bca29a2 commit ff155b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flux_support/src/extern_specs/result.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*

#[flux_rs::extern_spec]
#[flux_rs::refined_by(b: bool)]
enum Result<T, E> {
Expand All @@ -10,10 +10,10 @@ enum Result<T, E> {

#[flux_rs::extern_spec]
impl<T, E> Result<T, E> {
#[sig(fn(Self[@b]) -> bool[b])]
#[sig(fn(&Result<T,E>[@b]) -> bool[b])]
const fn is_ok(&self) -> bool;

#[sig(fn(Self[@b]) -> bool[!b])]
#[sig(fn(&Result<T,E>[@b]) -> bool[!b])]
const fn is_err(&self) -> bool;
}
*/

0 comments on commit ff155b5

Please sign in to comment.