pub struct RetainedStatement {
pub line: usize,
pub text: String,
pub after_end: bool,
}Expand description
A file level statement outside the grammar, kept as text.
Fields§
§line: usizeThe 1-based line the statement was read from, so the lowest line a statement can carry is 1.
text: StringThe statement’s line, with leading and trailing whitespace dropped.
after_end: boolWhether the line follows the file level END. The writer states these
after the END it writes, so reading the written file places them
after the terminator again rather than reading them as grammar.
Trait Implementations§
Source§impl Clone for RetainedStatement
impl Clone for RetainedStatement
Source§fn clone(&self) -> RetainedStatement
fn clone(&self) -> RetainedStatement
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 RetainedStatement
impl Debug for RetainedStatement
Source§impl<'de> Deserialize<'de> for RetainedStatement
impl<'de> Deserialize<'de> for RetainedStatement
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetainedStatement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RetainedStatement, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RetainedStatement
Source§impl JsonSchema for RetainedStatement
impl JsonSchema for RetainedStatement
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 RetainedStatement
impl PartialEq for RetainedStatement
Source§fn eq(&self, other: &RetainedStatement) -> bool
fn eq(&self, other: &RetainedStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetainedStatement
impl Serialize for RetainedStatement
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RetainedStatement
Auto Trait Implementations§
impl Freeze for RetainedStatement
impl RefUnwindSafe for RetainedStatement
impl Send for RetainedStatement
impl Sync for RetainedStatement
impl Unpin for RetainedStatement
impl UnsafeUnpin for RetainedStatement
impl UnwindSafe for RetainedStatement
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more