pub enum ArgumentBound {
Unbounded,
Included(ArgumentValue),
Excluded(ArgumentValue),
}Expand description
One side of a numeric range constraint.
§Examples
use qubit_argument::{ArgumentBound, ArgumentValue};
let bound = ArgumentBound::Included(ArgumentValue::from(5_i32));
assert!(matches!(bound, ArgumentBound::Included(_)));ⓘ
#![deny(unused_must_use)]
use qubit_argument::ArgumentBound;
ArgumentBound::Unbounded;Variants§
Unbounded
Places no limit on this side of the range.
Included(ArgumentValue)
Includes the captured endpoint in the range.
Excluded(ArgumentValue)
Excludes the captured endpoint from the range.
Trait Implementations§
Source§impl Clone for ArgumentBound
impl Clone for ArgumentBound
Source§impl Debug for ArgumentBound
impl Debug for ArgumentBound
impl Eq for ArgumentBound
Source§impl PartialEq for ArgumentBound
impl PartialEq for ArgumentBound
impl StructuralPartialEq for ArgumentBound
Auto Trait Implementations§
impl Freeze for ArgumentBound
impl RefUnwindSafe for ArgumentBound
impl Send for ArgumentBound
impl Sync for ArgumentBound
impl Unpin for ArgumentBound
impl UnsafeUnpin for ArgumentBound
impl UnwindSafe for ArgumentBound
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