AnchorVariableDemand

Struct AnchorVariableDemand 

Source
pub struct AnchorVariableDemand<E, A>
where E: Eq + Hash + Clone + Send + Sync + 'static, A: Clone + Send + Sync + 'static,
{ pub variable_name: String, /* private fields */ }
Expand description

Demand for an anchor variable supply.

Fields§

§variable_name: String

The variable name to track.

Implementations§

Source§

impl<E, A> AnchorVariableDemand<E, A>
where E: Eq + Hash + Clone + Send + Sync + 'static, A: Clone + Send + Sync + 'static,

Source

pub fn new(variable_name: impl Into<String>) -> Self

Creates a new demand for an anchor variable supply.

Trait Implementations§

Source§

impl<E, A> SupplyDemand for AnchorVariableDemand<E, A>
where E: Eq + Hash + Clone + Send + Sync + 'static, A: Clone + Send + Sync + 'static,

Source§

type Output = ExternalizedAnchorVariableSupply<E, A>

The type of supply this demand requests.
Source§

fn demand_key(&self) -> DemandKey

Returns a unique key identifying this specific demand. Read more
Source§

fn create_supply(&self) -> Self::Output

Creates a new supply instance for this demand.

Auto Trait Implementations§

§

impl<E, A> Freeze for AnchorVariableDemand<E, A>

§

impl<E, A> RefUnwindSafe for AnchorVariableDemand<E, A>

§

impl<E, A> Send for AnchorVariableDemand<E, A>

§

impl<E, A> Sync for AnchorVariableDemand<E, A>

§

impl<E, A> Unpin for AnchorVariableDemand<E, A>
where E: Unpin, A: Unpin,

§

impl<E, A> UnwindSafe for AnchorVariableDemand<E, A>
where E: UnwindSafe, A: UnwindSafe,

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.