pub struct FileSyntax {
pub language: String,
pub before_errors: usize,
pub after_errors: usize,
pub first_new_error: Option<SyntaxPosition>,
}Expand description
Parse facts for one file’s before and after text, in an enabled language.
Fields§
§language: StringLanguage the file was parsed as.
before_errors: usizeError and missing nodes found parsing the text before the plan.
after_errors: usizeError and missing nodes found parsing the text after the plan.
first_new_error: Option<SyntaxPosition>Position of the first error node introduced by the plan, if any.
Trait Implementations§
Source§impl Clone for FileSyntax
impl Clone for FileSyntax
Source§impl Debug for FileSyntax
impl Debug for FileSyntax
Source§impl<'de> Deserialize<'de> for FileSyntax
impl<'de> Deserialize<'de> for FileSyntax
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 FileSyntax
Source§impl JsonSchema for FileSyntax
impl JsonSchema for FileSyntax
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 moreSource§impl PartialEq for FileSyntax
impl PartialEq for FileSyntax
Source§impl Serialize for FileSyntax
impl Serialize for FileSyntax
impl StructuralPartialEq for FileSyntax
Auto Trait Implementations§
impl Freeze for FileSyntax
impl RefUnwindSafe for FileSyntax
impl Send for FileSyntax
impl Sync for FileSyntax
impl Unpin for FileSyntax
impl UnsafeUnpin for FileSyntax
impl UnwindSafe for FileSyntax
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