InstanceWrapper

Struct InstanceWrapper 

Source
pub struct InstanceWrapper { /* private fields */ }

Implementations§

Source§

impl InstanceWrapper

Source

pub fn new(token: InstanceToken, host: RefMut<Module>) -> InstanceWrapper

Source

pub fn get_id(&self) -> InstanceWrapperId

Source

pub fn get_token(&self) -> InstanceToken

Source

pub fn get_host(&self) -> RefMut<Module>

Source

pub fn get_scope(&self) -> Scope

Source

pub fn set_scope(&mut self, scope: Scope)

Source

pub fn has_instance(&self) -> bool

Source

pub fn set_instance(&mut self, instance: Instance)

Source

pub fn get_instances(&self) -> Vec<Instance>

Source

pub fn get_instance(&self) -> Option<Instance>

Source

pub fn set_instance_by_inquirer_id( &mut self, inquirer_id: InquirerId, context_id: ContextId, instance: Instance, )

Source

pub fn get_instance_by_inquirer_id( &self, inquirer_id: &InquirerId, context_id: &ContextId, ) -> Option<Instance>

Source

pub fn has_instance_by_inquirer_id( &self, inquirer_id: &InquirerId, context_id: &ContextId, ) -> bool

Source

pub fn set_instance_by_context_id( &mut self, context_id: ContextId, instance: Instance, )

Source

pub fn get_instance_by_context_id( &self, context_id: &ContextId, ) -> Option<Instance>

Auto Trait Implementations§

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<S> Cast for S
where S: CastFrom + ?Sized,

Source§

fn cast<T>(self: Arc<S>) -> Result<Arc<T>, Error>
where T: Any + ?Sized,

Source§

fn is<T>(self: Arc<S>) -> bool
where T: 'static + ?Sized,

Source§

impl<T> CastFrom for T
where T: Send + Sync + Any,

Source§

fn as_any(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V