[−][src]Struct liberty_parse::ast::LibertyAst
Liberty file AST representation
Each liberty file can have one or more library
s defined in it, which are represented as a
GroupItem::Group
variant.
Methods
impl LibertyAst
[src]
pub fn new(libs: Vec<GroupItem>) -> Self
[src]
Create a new AST from a vector of GroupItem
s
pub fn from_string(input: &str) -> ParseResult<Self>
[src]
Parse a Liberty file's string representation into the AST
pub fn to_string(&self) -> String
[src]
Get a String
representation from an AST
pub fn into_liberty(self) -> Liberty
[src]
Convert an AST into a Liberty
struct
pub fn from_liberty(lib: Liberty) -> Self
[src]
Convert a Liberty
struct into an AST
Trait Implementations
Auto Trait Implementations
impl Sync for LibertyAst
impl Send for LibertyAst
impl Unpin for LibertyAst
impl RefUnwindSafe for LibertyAst
impl UnwindSafe for LibertyAst
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,