Enum pschema_rs::shape::shex::Bound
source · pub enum Bound {
Inclusive(u8),
Exclusive(u8),
}Expand description
The above code is defining an enumeration type Bound in Rust. The Bound type
has two variants: Inclusive and Exclusive, each of which takes a single u8
value as an argument. The #[derive(Clone, Debug, PartialEq)] attribute is used
to automatically generate implementations of the Clone, Debug, and
PartialEq traits for the Bound type.
Variants§
Trait Implementations§
source§impl PartialEq<Bound> for Bound
impl PartialEq<Bound> for Bound
impl StructuralPartialEq for Bound
Auto Trait Implementations§
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnwindSafe for Bound
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