pub struct Gas(/* private fields */);Expand description
A gas amount which can be consumed during matching.
Gas bounds the overall runtime of the matching.
Implementations§
Source§impl Gas
impl Gas
Sourcepub const CONSTRAINED: Self
pub const CONSTRAINED: Self
Amount of gas which allows for reasonable pattern matches but does not allow unconstrained matches.
It is recommended to use this value when the pattern is user controlled.
Trait Implementations§
impl Copy for Gas
impl Eq for Gas
impl StructuralPartialEq for Gas
Auto Trait Implementations§
impl Freeze for Gas
impl RefUnwindSafe for Gas
impl Send for Gas
impl Sync for Gas
impl Unpin for Gas
impl UnsafeUnpin for Gas
impl UnwindSafe for Gas
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
Mutably borrows from an owned value. Read more