Struct Climber

Source
pub struct Climber<'a> { /* private fields */ }
Expand description

Climber represents the full state of evaluation of Interact expressions. It is used within the impls of the Access trait, and most likely does not require direct references from Interact’s crate users, unless manually providing impls of Access not via the #[derive(Interact)].

Implementations§

Source§

impl<'a> Climber<'a>

Source

pub fn new(max_nodes: usize, probe_only: bool, tokens: &'a [Token<'a>]) -> Self

Source

pub fn general_access_immut<'b>( &mut self, dynvalue: &'b dyn Access, ) -> Result<NodeTree, ClimbError>

Source

pub fn general_access_mut<'b>( &mut self, dynvalue: &'b mut dyn Access, ) -> Result<NodeTree, ClimbError>

Source

pub fn check_field_access_immut<'c, 'b>( &mut self, reflect: &'c EnumOrStruct<'b>, ) -> Result<Option<NodeTree>, ClimbError>

Source

pub fn check_field_access_mut<'c, 'b>( &mut self, reflect: EnumOrStructMut<'c, 'b>, ) -> Result<Option<NodeTree>, ClimbError>

Source

pub fn mutex_handling<'b>( &mut self, m: &'b Mutex<dyn Access + 'b>, ) -> Result<NodeTree, ClimbError>

Source

pub fn refcell_handling<'b>( &mut self, m: &'b RefCell<dyn Access + 'b>, ) -> Result<NodeTree, ClimbError>

Source

pub fn open_bracket(&mut self) -> bool

Source

pub fn close_bracket(&mut self) -> Result<(), ClimbError>

Source

pub fn is_probe_only(&self) -> bool

Source

pub fn convert_to_assist(self) -> (Assist<Vec<Token<'static>>>, usize)

Source

pub fn borrow_tracker<'b>(&'b mut self) -> Tracker<'a, 'b>

Trait Implementations§

Source§

impl<'a> Clone for Climber<'a>

Source§

fn clone(&self) -> Climber<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Climber<'a>

§

impl<'a> RefUnwindSafe for Climber<'a>

§

impl<'a> Send for Climber<'a>

§

impl<'a> Sync for Climber<'a>

§

impl<'a> Unpin for Climber<'a>

§

impl<'a> UnwindSafe for Climber<'a>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.