Struct Root

Source
pub struct Root<'a, 'b> {
    pub send: Option<&'a mut RootSend>,
    pub local: Option<&'b mut RootLocal>,
}
Expand description

A temporary binder of RootSend and RootLocal dictionaries, used for providing a unified dictionary to the user.

Fields§

§send: Option<&'a mut RootSend>§local: Option<&'b mut RootLocal>

Implementations§

Source§

impl<'a, 'b> Root<'a, 'b>

Source

pub fn probe( &mut self, path_str: &str, ) -> (Result<NodeTree, ClimbError>, Assist<String>)

Probe a path, checking if it is valid. If it contains a function name, it will not be called. If it contains an assignment, the assignment will not take place but the parameters value will check for Deser deserialization.

This call may block the current thread until ReflectIndirect evaluation is resolved, and it may block because some fields, depending on the types and usage, could be behind a Mutex lock.

Source

pub fn access( &mut self, path_str: &str, ) -> (Result<NodeTree, ClimbError>, Assist<String>)

Perform evaluation of the provided path. This may perform assignments, or call user-defined functions via the #[interact(...)] type attribute.

This call may block the current thread until ReflectIndirect evaluation is resolved, and it may block because some fields, depending on the types and usage, could be behind a Mutex lock.

Source

pub fn keys(&self) -> Vec<&'static str>

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for Root<'a, 'b>

§

impl<'a, 'b> !RefUnwindSafe for Root<'a, 'b>

§

impl<'a, 'b> !Send for Root<'a, 'b>

§

impl<'a, 'b> !Sync for Root<'a, 'b>

§

impl<'a, 'b> Unpin for Root<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for Root<'a, 'b>

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.