Struct rune::ast::FieldAssign [−][src]
A literal object field.
Fields
key: ObjectKey
The key of the field.
assign: Option<(Colon, Expr)>
The assigned expression of the field.
Trait Implementations
impl Clone for FieldAssign
[src]
fn clone(&self) -> FieldAssign
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FieldAssign
[src]
impl Eq for FieldAssign
[src]
impl Parse for FieldAssign
[src]
Parse an object literal.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::FieldAssign>("\"foo\": 42"); testing::roundtrip::<ast::FieldAssign>("\"foo\": 42"); testing::roundtrip::<ast::FieldAssign>("\"foo\": 42");
fn parse(p: &mut Parser<'_>) -> Result<Self, ParseError>
[src]
impl PartialEq<FieldAssign> for FieldAssign
[src]
fn eq(&self, other: &FieldAssign) -> bool
[src]
fn ne(&self, other: &FieldAssign) -> bool
[src]
impl Spanned for FieldAssign
[src]
impl StructuralEq for FieldAssign
[src]
impl StructuralPartialEq for FieldAssign
[src]
impl ToTokens for FieldAssign
[src]
fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[src]
Auto Trait Implementations
impl RefUnwindSafe for FieldAssign
impl Send for FieldAssign
impl Sync for FieldAssign
impl Unpin for FieldAssign
impl UnwindSafe for FieldAssign
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> 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, 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>,