pub enum Range {
Default(Range<i64>),
From(RangeFrom<i64>),
}Expand description
Represents a reserved or extensions range in .proto syntax.
§Examples
use protobuf_ast_parser::ast::Range;
let finite = Range::from(1..5);
let open_ended = Range::from(10..);Variants§
Trait Implementations§
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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