pub struct SettingsBlock {
pub text: String,
pub span: Span,
pub keyword_span: Span,
pub start: usize,
pub end: usize,
pub text_start: Position,
}Expand description
A top-of-file settings { ... } block.
Fields§
§text: StringThe raw JSONC text between the braces (braces excluded).
span: SpanThe whole block: the settings keyword through the closing brace.
keyword_span: SpanThe settings keyword token (diagnostic anchor).
start: usizeThe char offset of the settings keyword (for sanitization).
end: usizeThe char offset just past the closing brace (for sanitization).
text_start: PositionThe position of the first char of text (just past the opening brace).
Trait Implementations§
Source§impl Clone for SettingsBlock
impl Clone for SettingsBlock
Source§fn clone(&self) -> SettingsBlock
fn clone(&self) -> SettingsBlock
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 moreAuto Trait Implementations§
impl Freeze for SettingsBlock
impl RefUnwindSafe for SettingsBlock
impl Send for SettingsBlock
impl Sync for SettingsBlock
impl Unpin for SettingsBlock
impl UnsafeUnpin for SettingsBlock
impl UnwindSafe for SettingsBlock
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