Enum tspf::WeightKind [−][src]
pub enum WeightKind {}Show variants
Explicit, Euc2d, Euc3d, Max2d, Max3d, Man2d, Man3d, Ceil2d, Geo, Att, Xray1, Xray2, Custom, Undefined,
Expand description
Specifies how edge weights should be calculated.
Variants
Weights are explicitly given in the data file.
Weights are measured through the Euclidean norm in 2D.
Weights are measured through the Euclidean norm in 3D.
Weights are measured through the maximum norm in 2D.
Weights are measured through the maximum norm in 3D.
Weights are measured through the Manhattan norm in 2D.
Weights are measured through the Manhattan norm in 3D.
Weights are measured through the Euclidean norm in 3D and then rounded up.
Weights are measured through the geographical distance function.
Special distance function for problems att48
and att532
.
Weights are measure through the special function (version 1) for crystallography problems.
Weights are measure through the special function (version 2) for crystallography problems.
The distance function is defined outside the scope of the data file.
The distance function is undefined or not available.
Trait Implementations
impl Clone for WeightKind
[src]
impl Clone for WeightKind
[src]fn clone(&self) -> WeightKind
[src]
fn clone(&self) -> WeightKind
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for WeightKind
[src]
impl Debug for WeightKind
[src]impl Display for WeightKind
[src]
impl Display for WeightKind
[src]impl From<WeightKind> for CoordKind
[src]
impl From<WeightKind> for CoordKind
[src]fn from(kind: WeightKind) -> Self
[src]
fn from(kind: WeightKind) -> Self
[src]Performs the conversion.
impl Hash for WeightKind
[src]
impl Hash for WeightKind
[src]impl PartialEq<WeightKind> for WeightKind
[src]
impl PartialEq<WeightKind> for WeightKind
[src]impl Copy for WeightKind
[src]
impl Eq for WeightKind
[src]
impl StructuralEq for WeightKind
[src]
impl StructuralPartialEq for WeightKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for WeightKind
impl Send for WeightKind
impl Sync for WeightKind
impl Unpin for WeightKind
impl UnwindSafe for WeightKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more