pub struct Define { /* private fields */ }
Expand description
A struct which holds information about definitions.
Implementations§
Source§impl Define
impl Define
pub fn new( name: String, data: GenericDataTypes, proc_binds_set: HashSet<String>, ) -> Self
pub fn clone_name(&self) -> Arc<String>
pub fn clone_data(&self) -> GenericDataTypes
pub fn set_comment(&mut self, comment: String)
pub fn get_name(&self) -> &String
pub fn get_data(&self) -> &GenericDataTypes
pub fn get_binds(&self) -> Option<&HashSet<String>>
Sourcepub fn is_in_proc_scope(&self, proc_name: &String) -> bool
pub fn is_in_proc_scope(&self, proc_name: &String) -> bool
Returns true
if proc_name
is defined in the list
of binded procedures or if instance is not limited to any
procedure.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Define
impl<'de> Deserialize<'de> for Define
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 Define
impl<'nr> StaticProcedureParser<'nr> for Define
Source§type RetTypeArg = ()
type RetTypeArg = ()
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 Define
Auto Trait Implementations§
impl Freeze for Define
impl RefUnwindSafe for Define
impl Send for Define
impl Sync for Define
impl Unpin for Define
impl UnwindSafe for Define
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.