pub struct Argument { /* private fields */ }
Expand description
A structure which hold information about procedure’s argument.
Implementations§
Source§impl Argument
impl Argument
pub fn new( label: Arc<String>, arg_data_types: Vec<ArgDataType>, ) -> StaticSchemeRes<Self>
pub fn clone_label(&self) -> Arc<String>
pub fn get_args(&self) -> Arg<'_>
pub fn set_enum_bind( &mut self, enum_bind: Option<String>, ) -> StaticSchemeRes<()>
pub fn get_label(&self) -> &String
pub fn get_data_base_type(&self) -> &ArgDataType
pub fn get_data_type(&self) -> &ArgDataType
pub fn get_collection_type(&self) -> &ArgDataType
pub fn get_collection_type_sub(&self) -> &ArgDataType
pub fn get_arg_index(&self, idx: usize) -> Option<&ArgDataType>
pub fn get_enum_bind(&self) -> Option<&String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Argument
impl<'de> Deserialize<'de> for Argument
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<'nr> StaticProcedureParser<'nr> for Argument
impl<'nr> StaticProcedureParser<'nr> for Argument
Source§type RetTypeArg = &'nr mut ArgFields
type RetTypeArg = &'nr mut ArgFields
An argument for the helper function.
Source§type RetTypeInt = ()
type RetTypeInt = ()
A return type for the
parse_internal
function.Source§fn parse(
si: &'nr SchemeInit<'nr>,
nodes: NodesReader<'nr>,
) -> StaticSchemeRes<Self::RetType>
fn parse( si: &'nr SchemeInit<'nr>, nodes: NodesReader<'nr>, ) -> StaticSchemeRes<Self::RetType>
A main entry function. Read more
Source§fn parse_internal(
si: &'nr SchemeInit<'nr>,
nodes: NodesReader<'nr>,
v: Self::RetTypeArg,
) -> StaticSchemeRes<Self::RetTypeInt>
fn parse_internal( si: &'nr SchemeInit<'nr>, nodes: NodesReader<'nr>, v: Self::RetTypeArg, ) -> StaticSchemeRes<Self::RetTypeInt>
An additional function for the recursion.
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.