pub struct BDLinkMultiChoiceError<NodeT: NodeEnum + ?Sized> {
pub x: NodeIndex,
pub link: NodeT::LinkMirrorEnum,
pub y: NodeIndex,
pub choices: Vec<NodeT::LinkMirrorEnum>,
}Expand description
Bidirectional link that have multiple choices.
Assume y.l1 <-> x.l, y.l2 <-> x.l, a commit added x.l = y, while leaving y unchanged.
Then the error will be: {x, link: l, y, choices: vec![l1, l2]}
Fields§
§x: NodeIndex§link: NodeT::LinkMirrorEnum§y: NodeIndex§choices: Vec<NodeT::LinkMirrorEnum>Trait Implementations§
Source§impl<NodeT: Clone + NodeEnum + ?Sized> Clone for BDLinkMultiChoiceError<NodeT>where
NodeT::LinkMirrorEnum: Clone,
impl<NodeT: Clone + NodeEnum + ?Sized> Clone for BDLinkMultiChoiceError<NodeT>where
NodeT::LinkMirrorEnum: Clone,
Source§fn clone(&self) -> BDLinkMultiChoiceError<NodeT>
fn clone(&self) -> BDLinkMultiChoiceError<NodeT>
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 moreAuto Trait Implementations§
impl<NodeT> Freeze for BDLinkMultiChoiceError<NodeT>
impl<NodeT> RefUnwindSafe for BDLinkMultiChoiceError<NodeT>
impl<NodeT> Send for BDLinkMultiChoiceError<NodeT>
impl<NodeT> Sync for BDLinkMultiChoiceError<NodeT>
impl<NodeT> Unpin for BDLinkMultiChoiceError<NodeT>
impl<NodeT> UnwindSafe for BDLinkMultiChoiceError<NodeT>
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