[−][src]Enum full_moon::ast::Field
Fields of a TableConstructor
Variants
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: Cow<'a, TokenReference<'a>>
The =
part of [expression] = value
value: Expression<'a>
The value
part of [expression] = value
A key in the format of name = value
Fields of NameKey
key: Cow<'a, TokenReference<'a>>
The name
part of name = value
equal: Cow<'a, 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> Clone for Field<'a>
[src]
impl<'a> Debug for Field<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for Field<'a>
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> Display for Field<'a>
[src]
impl<'a> Node<'a> for Field<'a>
[src]
pub fn start_position(&self) -> Option<Position>
[src]
pub fn end_position(&self) -> Option<Position>
[src]
pub fn similar(&self, other: &Self) -> bool
[src]
pub fn tokens<'b>(&'b self) -> Tokens<'a, 'b>ⓘ
[src]
pub fn range(&self) -> Option<(Position, Position)>
[src]
pub fn surrounding_trivia<'b>(
&'b self
) -> (Vec<Cow<'b, Token<'ast>>>, Vec<Cow<'b, Token<'ast>>>)
[src]
&'b self
) -> (Vec<Cow<'b, Token<'ast>>>, Vec<Cow<'b, Token<'ast>>>)
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.
pub fn owned(&self) -> Self::Owned
[src]
impl<'a> PartialEq<Field<'a>> for Field<'a>
[src]
impl<'a> Serialize for Field<'a>
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> StructuralPartialEq for Field<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Field<'a>
[src]
impl<'a> Send for Field<'a>
[src]
impl<'a> Sync for Field<'a>
[src]
impl<'a> Unpin for Field<'a>
[src]
impl<'a> UnwindSafe for Field<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,