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>
impl<'a> Climber<'a>
pub fn new(max_nodes: usize, probe_only: bool, tokens: &'a [Token<'a>]) -> Self
pub fn general_access_immut<'b>( &mut self, dynvalue: &'b dyn Access, ) -> Result<NodeTree, ClimbError>
pub fn general_access_mut<'b>( &mut self, dynvalue: &'b mut dyn Access, ) -> Result<NodeTree, ClimbError>
pub fn check_field_access_immut<'c, 'b>( &mut self, reflect: &'c EnumOrStruct<'b>, ) -> Result<Option<NodeTree>, ClimbError>
pub fn check_field_access_mut<'c, 'b>( &mut self, reflect: EnumOrStructMut<'c, 'b>, ) -> Result<Option<NodeTree>, ClimbError>
pub fn mutex_handling<'b>( &mut self, m: &'b Mutex<dyn Access + 'b>, ) -> Result<NodeTree, ClimbError>
pub fn refcell_handling<'b>( &mut self, m: &'b RefCell<dyn Access + 'b>, ) -> Result<NodeTree, ClimbError>
pub fn open_bracket(&mut self) -> bool
pub fn close_bracket(&mut self) -> Result<(), ClimbError>
pub fn is_probe_only(&self) -> bool
pub fn convert_to_assist(self) -> (Assist<Vec<Token<'static>>>, usize)
pub fn borrow_tracker<'b>(&'b mut self) -> Tracker<'a, 'b>
Trait Implementations§
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> 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