pub struct VariableID(/* private fields */);Expand description
Variable array’s ID that is unique in a VariableEnvironment.
See VariableEnvironment.
Trait Implementations§
Source§impl Clone for VariableID
impl Clone for VariableID
Source§fn clone(&self) -> VariableID
fn clone(&self) -> VariableID
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariableID
impl Debug for VariableID
Source§impl<'de> Deserialize<'de> for VariableID
impl<'de> Deserialize<'de> for VariableID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VariableID
impl Display for VariableID
Source§impl From<VariableID> for usize
impl From<VariableID> for usize
Source§fn from(a: VariableID) -> usize
fn from(a: VariableID) -> usize
Converts to this type from the input type.
Source§impl From<usize> for VariableID
impl From<usize> for VariableID
Source§fn from(a: usize) -> VariableID
fn from(a: usize) -> VariableID
Converts to this type from the input type.
Source§impl<'g, 'e: 'g, F: Float> GetVariableTensor<'g, F, VariableID> for Context<'e, F>
impl<'g, 'e: 'g, F: Float> GetVariableTensor<'g, F, VariableID> for Context<'e, F>
Source§fn variable(&'g self, id: VariableID) -> Tensor<'g, F>
fn variable(&'g self, id: VariableID) -> Tensor<'g, F>
Get or create a variable tensor by VariableID
Source§impl Hash for VariableID
impl Hash for VariableID
Source§impl PartialEq for VariableID
impl PartialEq for VariableID
Source§impl Serialize for VariableID
impl Serialize for VariableID
impl Copy for VariableID
impl Eq for VariableID
impl StructuralPartialEq for VariableID
Auto Trait Implementations§
impl Freeze for VariableID
impl RefUnwindSafe for VariableID
impl Send for VariableID
impl Sync for VariableID
impl Unpin for VariableID
impl UnwindSafe for VariableID
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more