pub struct LuaRoot {
pub statements: Vec<LuaStatement>,
pub span: Range<usize>,
}Expand description
Lua root node
Fields§
§statements: Vec<LuaStatement>Statements in the root.
span: Range<usize>Source span of the root.
Trait Implementations§
Source§impl AsDocument for LuaRoot
Available on crate feature oak-pretty-print only.
impl AsDocument for LuaRoot
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl<'de> Deserialize<'de> for LuaRoot
impl<'de> Deserialize<'de> for LuaRoot
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
Auto Trait Implementations§
impl Freeze for LuaRoot
impl RefUnwindSafe for LuaRoot
impl Send for LuaRoot
impl Sync for LuaRoot
impl Unpin for LuaRoot
impl UnsafeUnpin for LuaRoot
impl UnwindSafe for LuaRoot
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