Struct fluent_syntax::ast::Resource [−][src]
Expand description
Root node of a Fluent Translation List.
A Resource
contains a body with a list of Entry
nodes.
Example
use fluent_syntax::parser;
use fluent_syntax::ast;
let ftl = "";
let resource = parser::parse(ftl)
.expect("Failed to parse an FTL resource.");
assert_eq!(
resource,
ast::Resource {
body: vec![]
}
);
Fields
body: Vec<Entry<S>>
Trait Implementations
Auto Trait Implementations
impl<S> RefUnwindSafe for Resource<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Resource<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more