pub enum RangeLimits {
HalfOpen(Dot2),
Closed(DotDotEq),
}
Expand description
Limit types of a range, inclusive or exclusive.
This type is available if Syn is built with the "full"
feature.
Variants§
HalfOpen(Dot2)
Inclusive at the beginning, exclusive at the end.
Closed(DotDotEq)
Inclusive at the beginning and end.
Trait Implementations§
Source§impl Clone for RangeLimits
impl Clone for RangeLimits
Source§fn clone(&self) -> RangeLimits
fn clone(&self) -> RangeLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RangeLimits
impl Debug for RangeLimits
Source§impl Hash for RangeLimits
impl Hash for RangeLimits
Source§impl PartialEq for RangeLimits
impl PartialEq for RangeLimits
Source§impl Synom for RangeLimits
impl Synom for RangeLimits
impl Copy for RangeLimits
impl Eq for RangeLimits
impl StructuralPartialEq for RangeLimits
Auto Trait Implementations§
impl Freeze for RangeLimits
impl RefUnwindSafe for RangeLimits
impl Send for RangeLimits
impl Sync for RangeLimits
impl Unpin for RangeLimits
impl UnwindSafe for RangeLimits
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