pub struct VariableId(/* private fields */);Expand description
Stable handle to a decision variable.
Implementations§
Source§impl VariableId
impl VariableId
Sourcepub const fn key(self) -> VariableKey
pub const fn key(self) -> VariableKey
Returns the underlying arena key.
Sourcepub const fn from_key(key: VariableKey) -> Self
pub const fn from_key(key: VariableKey) -> Self
Creates an id from an arena key.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VariableId
Source§impl Debug for VariableId
impl Debug for VariableId
impl Eq for VariableId
Source§impl Hash for VariableId
impl Hash for VariableId
Source§impl PartialEq for VariableId
impl PartialEq for VariableId
Source§fn eq(&self, other: &VariableId) -> bool
fn eq(&self, other: &VariableId) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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