Struct NodesReader

Source
pub struct NodesReader<'nr> { /* private fields */ }

Implementations§

Source§

impl<'nr> NodesReader<'nr>

Source

pub const ROOT_PROC: &'static str = "root"

Source

pub fn new<N>( env: &'nr Environment, nodes: &'nr DynNodeData, root_proc: N, ) -> StaticSchemeRes<NodesReader<'nr>>
where N: AsRef<str>,

Source

pub fn is_eof(&self) -> bool

Source

pub fn should_eof(&self) -> StaticSchemeRes<()>

Source

pub fn get_env_proc(&self) -> &EnvironmentProc

Source

pub fn get_proc_name(&self) -> EnvProcs

Source

pub fn get_base_li(&self) -> LexerInfo

Source

pub fn get_cur_or_base_li(&self) -> LexerInfo

Source

pub fn get_len(&self) -> usize

Source

pub fn peek_procedure(&self) -> StaticSchemeRes<NodesReader<'nr>>

Source

pub fn read_procedure(&self) -> StaticSchemeRes<NodesReader<'nr>>

Source

pub fn read_int(&self, arg_name: &str) -> StaticSchemeRes<i64>

Source

pub fn read_uint(&self, arg_name: &str) -> StaticSchemeRes<u64>

Source

pub fn read_longint(&self, arg_name: &str) -> StaticSchemeRes<i128>

Source

pub fn read_longuint(&self, arg_name: &str) -> StaticSchemeRes<u128>

Source

pub fn read_string(&self, arg_name: &str) -> StaticSchemeRes<String>

Source

pub fn read_identifier(&self, arg_name: &str) -> StaticSchemeRes<String>

Source

pub fn read_boolean(&self, arg_name: &str) -> StaticSchemeRes<bool>

Source

pub fn read_symbol(&self, arg_name: &str) -> StaticSchemeRes<EnvironmentDefs>

Source

pub fn read_rust_code_der( &self, arg_name: &str, ) -> StaticSchemeRes<EnvironmentDefs>

Source

pub fn read_array(&self, arg_name: &str) -> StaticSchemeRes<NodesReader<'nr>>

Source

pub fn read_list(&self, arg_name: &str) -> StaticSchemeRes<NodesReader<'nr>>

Source

pub fn read_str_list_nodup( &self, arg_name: &str, ) -> StaticSchemeRes<Vec<String>>

Source

pub fn read_ordkeep_string_nodup( &self, arg_name: &str, ) -> StaticSchemeRes<IndexSet<String>>

Source

pub fn read_proc_flags(&self, arg_name: &str) -> StaticSchemeRes<ProcFlags>

Source

pub fn read_generic( &self, arg_name: &str, set: &[NodeDataType], ) -> StaticSchemeRes<GenericDataTypes>

Source

pub fn read_names(&self, arg_name: &str) -> StaticSchemeRes<Names>

Auto Trait Implementations§

§

impl<'nr> !Freeze for NodesReader<'nr>

§

impl<'nr> !RefUnwindSafe for NodesReader<'nr>

§

impl<'nr> !Send for NodesReader<'nr>

§

impl<'nr> !Sync for NodesReader<'nr>

§

impl<'nr> Unpin for NodesReader<'nr>

§

impl<'nr> !UnwindSafe for NodesReader<'nr>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.