pub struct RangeParams {
pub start_line: u32,
pub start_character: u32,
pub end_line: u32,
pub end_character: u32,
}Expand description
Shared range parameters (1-based start/end line and character) used by every tool that operates over a range in a file.
Fields§
§start_line: u32Start line (1-based).
start_character: u32Start character (1-based).
end_line: u32End line (1-based).
end_character: u32End character (1-based).
Trait Implementations§
Source§impl Clone for RangeParams
impl Clone for RangeParams
Source§fn clone(&self) -> RangeParams
fn clone(&self) -> RangeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RangeParams
impl Debug for RangeParams
Source§impl<'de> Deserialize<'de> for RangeParams
impl<'de> Deserialize<'de> for RangeParams
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
Source§impl JsonSchema for RangeParams
impl JsonSchema for RangeParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RangeParams
impl RefUnwindSafe for RangeParams
impl Send for RangeParams
impl Sync for RangeParams
impl Unpin for RangeParams
impl UnsafeUnpin for RangeParams
impl UnwindSafe for RangeParams
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