pub struct IntersectionNumber {
pub value: Rational64,
pub multiplicity_data: HashMap<String, Rational64>,
}Expand description
Represents an intersection number
Fields§
§value: Rational64The numerical value of the intersection
multiplicity_data: HashMap<String, Rational64>Multiplicity information
Implementations§
Source§impl IntersectionNumber
impl IntersectionNumber
Sourcepub fn new(value: Rational64) -> Self
pub fn new(value: Rational64) -> Self
Create a new intersection number
Sourcepub fn multiplicity(&self) -> i64
pub fn multiplicity(&self) -> i64
Get the intersection multiplicity as an integer
Trait Implementations§
Source§impl Clone for IntersectionNumber
impl Clone for IntersectionNumber
Source§fn clone(&self) -> IntersectionNumber
fn clone(&self) -> IntersectionNumber
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 IntersectionNumber
impl Debug for IntersectionNumber
Source§impl PartialEq for IntersectionNumber
impl PartialEq for IntersectionNumber
impl StructuralPartialEq for IntersectionNumber
Auto Trait Implementations§
impl Freeze for IntersectionNumber
impl RefUnwindSafe for IntersectionNumber
impl Send for IntersectionNumber
impl Sync for IntersectionNumber
impl Unpin for IntersectionNumber
impl UnwindSafe for IntersectionNumber
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