pub struct LineRange {
pub first: i64,
pub last: i64,
}
Expand description
An inclusive range.
§Note:
Several core protocol commands use a params array to pass arguments which are named, internally. this type use custom Serialize / Deserialize impls to accommodate this.
Fields§
§first: i64
§last: i64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineRange
impl<'de> Deserialize<'de> for LineRange
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LineRange
impl StructuralPartialEq for LineRange
Auto Trait Implementations§
impl Freeze for LineRange
impl RefUnwindSafe for LineRange
impl Send for LineRange
impl Sync for LineRange
impl Unpin for LineRange
impl UnwindSafe for LineRange
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