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§impl Debug for ConstraintRef
impl Debug for ConstraintRef
impl Eq for ConstraintRef
Source§impl Hash for ConstraintRef
impl Hash for ConstraintRef
Source§impl PartialEq for ConstraintRef
impl PartialEq for ConstraintRef
impl StructuralPartialEq for ConstraintRef
Auto Trait Implementations§
impl Forget for ConstraintRef
impl Freeze for ConstraintRef
impl Move for ConstraintRef
impl RefUnwindSafe for ConstraintRef
impl Send for ConstraintRef
impl Sync for ConstraintRef
impl Unpin for ConstraintRef
impl UnsafeUnpin 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