pub struct Function {
pub arguments: OrderedMap<NameTypePair>,
pub return_type: Option<Namespace>,
pub attributes: Vec<Attribute>,
}Fields§
§arguments: OrderedMap<NameTypePair>§return_type: Option<Namespace>§attributes: Vec<Attribute>Implementations§
source§impl Function
impl Function
pub fn new( arguments: OrderedMap<NameTypePair>, return_type: Option<Namespace>, attributes: Vec<Attribute> ) -> Self
pub fn arguments(&mut self) -> OrderedMap<NameTypePair>
pub fn return_type(&mut self) -> Option<Namespace>
pub fn attributes(&mut self) -> Vec<Attribute>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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
source§impl ObjectView for Function
impl ObjectView for Function
source§fn keys<'liquid_derive_k>(
&'liquid_derive_k self
) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
fn keys<'liquid_derive_k>( &'liquid_derive_k self ) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
Keys available for lookup.
source§fn values<'liquid_derive_k>(
&'liquid_derive_k self
) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
fn values<'liquid_derive_k>( &'liquid_derive_k self ) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
Keys available for lookup.
source§fn iter<'liquid_derive_k>(
&'liquid_derive_k self
) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
fn iter<'liquid_derive_k>( &'liquid_derive_k self ) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
Returns an iterator .
source§fn contains_key(&self, index: &str) -> bool
fn contains_key(&self, index: &str) -> bool
Access a contained
BoxedValue.Auto Trait Implementations§
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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