pub struct ComponentId(/* private fields */);Expand description
Attribution component (typically a mechanism / node) in change decomposition.
Distinct from VariableId at the type level so allocation orders cannot
silently mix raw variables with coalition players.
Implementations§
Source§impl ComponentId
impl ComponentId
Sourcepub const fn from_variable(variable: VariableId) -> Self
pub const fn from_variable(variable: VariableId) -> Self
Wrap a variable as an attribution component (mechanism of that node).
Sourcepub const fn variable(self) -> VariableId
pub const fn variable(self) -> VariableId
Underlying variable id.
Trait Implementations§
Source§impl Clone for ComponentId
impl Clone for ComponentId
Source§fn clone(&self) -> ComponentId
fn clone(&self) -> ComponentId
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 ComponentId
Source§impl Debug for ComponentId
impl Debug for ComponentId
Source§impl Display for ComponentId
impl Display for ComponentId
impl Eq for ComponentId
Source§impl From<VariableId> for ComponentId
impl From<VariableId> for ComponentId
Source§fn from(variable: VariableId) -> Self
fn from(variable: VariableId) -> Self
Converts to this type from the input type.
Source§impl Hash for ComponentId
impl Hash for ComponentId
Source§impl Ord for ComponentId
impl Ord for ComponentId
Source§fn cmp(&self, other: &ComponentId) -> Ordering
fn cmp(&self, other: &ComponentId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComponentId
impl PartialEq for ComponentId
Source§impl PartialOrd for ComponentId
impl PartialOrd for ComponentId
impl StructuralPartialEq for ComponentId
Auto Trait Implementations§
impl Freeze for ComponentId
impl RefUnwindSafe for ComponentId
impl Send for ComponentId
impl Sync for ComponentId
impl Unpin for ComponentId
impl UnsafeUnpin for ComponentId
impl UnwindSafe for ComponentId
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