Struct bpf_script::compiler::ScriptDef
source · [−]pub struct ScriptDef {
pub input: InputLine,
pub exprs: Vec<Expression>,
}
Fields
input: InputLine
exprs: Vec<Expression>
Trait Implementations
sourceimpl PegParser for ScriptDef
impl PegParser for ScriptDef
sourcefn parse_advanced<T: ParseTracer>(
s: &str,
settings: &ParseSettings
) -> Result<Self, ParseError>
fn parse_advanced<T: ParseTracer>(
s: &str,
settings: &ParseSettings
) -> Result<Self, ParseError>
Internal function that is actually generated by the grammar compiler, used by the more
friendly functions. Read more
sourcefn parse(s: &str) -> Result<Self, ParseError>
fn parse(s: &str) -> Result<Self, ParseError>
Parse a string into the AST.
sourcefn parse_with_trace(s: &str) -> Result<Self, ParseError>
fn parse_with_trace(s: &str) -> Result<Self, ParseError>
Parse a string into the AST, print a colored trace of the parse process. Read more
Auto Trait Implementations
impl RefUnwindSafe for ScriptDef
impl Send for ScriptDef
impl Sync for ScriptDef
impl Unpin for ScriptDef
impl UnwindSafe for ScriptDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more