Struct vrl::compiler::function::ArgumentList
source · pub struct ArgumentList { /* private fields */ }
Implementations§
source§impl ArgumentList
impl ArgumentList
pub fn optional(&self, keyword: &'static str) -> Option<Box<dyn Expression>>
pub fn required(&self, keyword: &'static str) -> Box<dyn Expression>
pub fn optional_literal( &self, keyword: &'static str, state: &TypeState, ) -> Result<Option<Value>, Error>
pub fn required_literal( &self, keyword: &'static str, state: &TypeState, ) -> Result<Value, Error>
pub fn optional_enum( &self, keyword: &'static str, variants: &[Value], state: &TypeState, ) -> Result<Option<Value>, Error>
pub fn required_enum( &self, keyword: &'static str, variants: &[Value], state: &TypeState, ) -> Result<Value, Error>
pub fn optional_query( &self, keyword: &'static str, ) -> Result<Option<Query>, Error>
pub fn required_query(&self, keyword: &'static str) -> Result<Query, Error>
pub fn optional_regex( &self, keyword: &'static str, state: &TypeState, ) -> Result<Option<Regex>, Error>
pub fn required_regex( &self, keyword: &'static str, state: &TypeState, ) -> Result<Regex, Error>
pub fn optional_object( &self, keyword: &'static str, ) -> Result<Option<BTreeMap<KeyString, Expr>>, Error>
pub fn required_object( &self, keyword: &'static str, ) -> Result<BTreeMap<KeyString, Expr>, Error>
pub fn optional_array( &self, keyword: &'static str, ) -> Result<Option<Vec<Expr>>, Error>
pub fn required_array(&self, keyword: &'static str) -> Result<Vec<Expr>, Error>
pub fn optional_closure(&self) -> Option<&FunctionClosure>
pub fn required_closure(&self) -> Result<FunctionClosure, Error>
pub fn required_expr(&self, keyword: &'static str) -> Expr
Trait Implementations§
source§impl Clone for ArgumentList
impl Clone for ArgumentList
source§fn clone(&self) -> ArgumentList
fn clone(&self) -> ArgumentList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ArgumentList
impl Debug for ArgumentList
source§impl Default for ArgumentList
impl Default for ArgumentList
source§fn default() -> ArgumentList
fn default() -> ArgumentList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArgumentList
impl !RefUnwindSafe for ArgumentList
impl Send for ArgumentList
impl Sync for ArgumentList
impl Unpin for ArgumentList
impl !UnwindSafe for ArgumentList
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.