Struct scru64::PartsError
source · pub struct PartsError { /* private fields */ }Expand description
An error passing invalid arguments to Scru64Id::from_parts().
Implementations§
source§impl PartsError
impl PartsError
sourcepub fn test_timestamp(&self) -> bool
pub fn test_timestamp(&self) -> bool
Returns true if timestamp is within the valid range.
sourcepub fn test_node_ctr(&self) -> bool
pub fn test_node_ctr(&self) -> bool
Returns true if node_ctr is within the valid range.
Trait Implementations§
source§impl Clone for PartsError
impl Clone for PartsError
source§fn clone(&self) -> PartsError
fn clone(&self) -> PartsError
Returns a copy 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 PartsError
impl Debug for PartsError
source§impl Display for PartsError
impl Display for PartsError
source§impl Error for PartsError
Available on crate feature std only.
impl Error for PartsError
Available on crate feature
std only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<PartsError> for PartsError
impl PartialEq<PartsError> for PartsError
source§fn eq(&self, other: &PartsError) -> bool
fn eq(&self, other: &PartsError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PartsError
impl StructuralEq for PartsError
impl StructuralPartialEq for PartsError
Auto Trait Implementations§
impl RefUnwindSafe for PartsError
impl Send for PartsError
impl Sync for PartsError
impl Unpin for PartsError
impl UnwindSafe for PartsError
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