[−][src]Enum full_moon::ast::Field
Fields of a TableConstructor
Variants
ExpressionKey
A key in the format of [expression] = value
Fields of ExpressionKey
brackets: ContainedSpan<'a>
The [...]
part of [expression] = value
key: Expression<'a>
The expression
part of [expression] = value
equal: TokenReference<'a>
The =
part of [expression] = value
value: Expression<'a>
The value
part of [expression] = value
NameKey
A key in the format of name = value
Fields of NameKey
key: TokenReference<'a>
The name
part of name = value
equal: TokenReference<'a>
The =
part of name = value
value: Expression<'a>
The value
part of name = value
NoKey(Expression<'a>)
A field with no key, just a value (such as "a"
in { "a" }
)
Trait Implementations
impl<'a> Owned for Field<'a>
[src]
type Owned = Field<'static>
What an owned version of the object looks like. Usually contains a 'static
lifetime.
fn owned(&self) -> Self::Owned
[src]
impl<'a> Node for Field<'a>
[src]
fn start_position(&self) -> Option<Position>
[src]
fn end_position(&self) -> Option<Position>
[src]
fn range(&self) -> Option<(Position, Position)>
[src]
fn surrounding_ignore_tokens<'ast>(
&self,
ast: &'ast Ast<'ast>
) -> Option<(Vec<&Token<'ast>>, Vec<&Token<'ast>>)>
[src]
&self,
ast: &'ast Ast<'ast>
) -> Option<(Vec<&Token<'ast>>, Vec<&Token<'ast>>)>
impl<'a> Clone for Field<'a>
[src]
impl<'a> PartialEq<Field<'a>> for Field<'a>
[src]
impl<'a> Debug for Field<'a>
[src]
impl<'a> Serialize for Field<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<'a> Unpin for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> !UnwindSafe for Field<'a>
impl<'a> !RefUnwindSafe for Field<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,