pub struct PartitionAttr<A = i32> {
pub num_parts: Range<A>,
pub part_len: Range<A>,
pub is_regular: bool,
}Fields§
§num_parts: Range<A>§part_len: Range<A>§is_regular: boolImplementations§
Source§impl PartitionAttr<IntVal>
impl PartitionAttr<IntVal>
pub fn resolve(&self) -> Option<PartitionAttr>
Trait Implementations§
Source§impl<A> Clone for PartitionAttr<A>where
A: Clone,
impl<A> Clone for PartitionAttr<A>where
A: Clone,
Source§fn clone(&self) -> PartitionAttr<A>
fn clone(&self) -> PartitionAttr<A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A> Debug for PartitionAttr<A>where
A: Debug,
impl<A> Debug for PartitionAttr<A>where
A: Debug,
Source§impl<A> Default for PartitionAttr<A>
impl<A> Default for PartitionAttr<A>
Source§fn default() -> PartitionAttr<A>
fn default() -> PartitionAttr<A>
Returns the “default value” for a type. Read more
Source§impl<'de, A> Deserialize<'de> for PartitionAttr<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for PartitionAttr<A>where
A: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartitionAttr<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PartitionAttr<A>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A> Display for PartitionAttr<A>where
A: Display,
impl<A> Display for PartitionAttr<A>where
A: Display,
Source§impl From<PartitionAttr> for PartitionAttr<IntVal>
impl From<PartitionAttr> for PartitionAttr<IntVal>
Source§fn from(value: PartitionAttr) -> PartitionAttr<IntVal>
fn from(value: PartitionAttr) -> PartitionAttr<IntVal>
Converts to this type from the input type.
Source§impl<A> Hash for PartitionAttr<A>where
A: Hash,
impl<A> Hash for PartitionAttr<A>where
A: Hash,
Source§impl<A> PartialEq for PartitionAttr<A>where
A: PartialEq,
impl<A> PartialEq for PartitionAttr<A>where
A: PartialEq,
Source§fn eq(&self, other: &PartitionAttr<A>) -> bool
fn eq(&self, other: &PartitionAttr<A>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<A> Quine for PartitionAttr<A>where
A: Quine,
impl<A> Quine for PartitionAttr<A>where
A: Quine,
fn ctor_tokens(&self) -> TokenStream
Source§impl<A> Serialize for PartitionAttr<A>where
A: Serialize,
impl<A> Serialize for PartitionAttr<A>where
A: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryInto<PartitionAttr> for PartitionAttr<IntVal>
impl TryInto<PartitionAttr> for PartitionAttr<IntVal>
Source§type Error = DomainOpError
type Error = DomainOpError
The type returned in the event of a conversion error.
Source§fn try_into(
self,
) -> Result<PartitionAttr, <PartitionAttr<IntVal> as TryInto<PartitionAttr>>::Error>
fn try_into( self, ) -> Result<PartitionAttr, <PartitionAttr<IntVal> as TryInto<PartitionAttr>>::Error>
Performs the conversion.
impl<A> Eq for PartitionAttr<A>where
A: Eq,
impl<A> StructuralPartialEq for PartitionAttr<A>
Auto Trait Implementations§
impl<A> Freeze for PartitionAttr<A>where
A: Freeze,
impl<A> RefUnwindSafe for PartitionAttr<A>where
A: RefUnwindSafe,
impl<A> Send for PartitionAttr<A>where
A: Send,
impl<A> Sync for PartitionAttr<A>where
A: Sync,
impl<A> Unpin for PartitionAttr<A>where
A: Unpin,
impl<A> UnsafeUnpin for PartitionAttr<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for PartitionAttr<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.