pub struct GoRoot {
pub package: Option<String>,
pub imports: Vec<Import>,
pub declarations: Vec<Declaration>,
}Expand description
Go 语言强类型 AST 根
Fields§
§package: Option<String>§imports: Vec<Import>§declarations: Vec<Declaration>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GoRoot
impl<'de> Deserialize<'de> for GoRoot
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
impl StructuralPartialEq for GoRoot
Auto Trait Implementations§
impl Freeze for GoRoot
impl RefUnwindSafe for GoRoot
impl Send for GoRoot
impl Sync for GoRoot
impl Unpin for GoRoot
impl UnwindSafe for GoRoot
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