pub struct PrettyInfo {
pub rule_name: String,
pub hints: Vec<String>,
pub span: (usize, usize),
pub rule_name_span: (usize, usize),
pub hint_spans: Vec<(usize, usize)>,
}Expand description
Owned @pretty directive info (no lifetimes).
Fields§
§rule_name: StringThe targeted rule name.
hints: Vec<String>The formatting hint keywords.
span: (usize, usize)Byte offset range of the entire directive.
rule_name_span: (usize, usize)Byte offset range of the rule name within the directive.
hint_spans: Vec<(usize, usize)>Byte offset ranges of each hint keyword.
Trait Implementations§
Source§impl Clone for PrettyInfo
impl Clone for PrettyInfo
Source§fn clone(&self) -> PrettyInfo
fn clone(&self) -> PrettyInfo
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 moreAuto Trait Implementations§
impl Freeze for PrettyInfo
impl RefUnwindSafe for PrettyInfo
impl Send for PrettyInfo
impl Sync for PrettyInfo
impl Unpin for PrettyInfo
impl UnsafeUnpin for PrettyInfo
impl UnwindSafe for PrettyInfo
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