Skip to content

Commit

Permalink
add into_value
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoikey committed Feb 20, 2024
1 parent 6ad554c commit f48a85b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/refined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ where
pub fn value(&self) -> &RULE::Item {
&self.value
}

pub fn into_value(self) -> RULE::Item {
self.value
}
}

impl<RULE, T> Deref for Refined<RULE>
Expand Down

0 comments on commit f48a85b

Please sign in to comment.