pub struct ConstraintRef {
pub package: String,
pub name: String,
}Expand description
Reference to a constraint for identification.
§Example
use solverforge_core::ConstraintRef;
let cr = ConstraintRef::new("scheduling", "NoOverlap");
assert_eq!(cr.full_name(), "scheduling/NoOverlap");
let simple = ConstraintRef::new("", "Simple");
assert_eq!(simple.full_name(), "Simple");Fields§
§package: StringPackage/module containing the constraint.
name: StringName of the constraint.
Implementations§
Trait Implementations§
Source§impl Clone for ConstraintRef
impl Clone for ConstraintRef
Source§fn clone(&self) -> ConstraintRef
fn clone(&self) -> ConstraintRef
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 ConstraintRef
impl Debug for ConstraintRef
Source§impl Hash for ConstraintRef
impl Hash for ConstraintRef
Source§impl PartialEq for ConstraintRef
impl PartialEq for ConstraintRef
impl Eq for ConstraintRef
impl StructuralPartialEq for ConstraintRef
Auto Trait Implementations§
impl Freeze for ConstraintRef
impl RefUnwindSafe for ConstraintRef
impl Send for ConstraintRef
impl Sync for ConstraintRef
impl Unpin for ConstraintRef
impl UnwindSafe for ConstraintRef
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