pub enum WSCreationError {
ImpossibleRingRequest,
ImpossibleEdgeRequest,
}
Expand description
Error variants
Possible Errors which can be encountered during the initial creation of an instance of a WS
Variants
ImpossibleRingRequest
It is impossible to create the initial ring structure. You have to either increase the system size of the graph (i.e., the number of nodes) or reduce the neigbor distance!
ImpossibleEdgeRequest
Something went wrong during the rewireing. This should not happen. If you encounter this error, please file a bug report on Github with a minimal example to reproduce the bug. Thanks!
Trait Implementations
sourceimpl Clone for WSCreationError
impl Clone for WSCreationError
sourcefn clone(&self) -> WSCreationError
fn clone(&self) -> WSCreationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WSCreationError
impl Debug for WSCreationError
impl Copy for WSCreationError
Auto Trait Implementations
impl RefUnwindSafe for WSCreationError
impl Send for WSCreationError
impl Sync for WSCreationError
impl Unpin for WSCreationError
impl UnwindSafe for WSCreationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more