Struct dapol::MaxThreadCount
source · pub struct MaxThreadCount(/* private fields */);
Expand description
Abstraction for the max number of threads. Max size of the thread pool when using the parallelized tree build algorithms.
Example:
use dapol::MaxThreadCount;
use std::str::FromStr;
let max_thread_count = MaxThreadCount::default();
let max_thread_count = MaxThreadCount::from(8u8);
let max_thread_count = MaxThreadCount::from_str("8");
Implementations§
Trait Implementations§
source§impl Clone for MaxThreadCount
impl Clone for MaxThreadCount
source§fn clone(&self) -> MaxThreadCount
fn clone(&self) -> MaxThreadCount
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 MaxThreadCount
impl Debug for MaxThreadCount
source§impl Default for MaxThreadCount
impl Default for MaxThreadCount
source§impl<'de> Deserialize<'de> for MaxThreadCount
impl<'de> Deserialize<'de> for MaxThreadCount
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MaxThreadCount> for OsStr
impl From<MaxThreadCount> for OsStr
source§fn from(max_thread_count: MaxThreadCount) -> OsStr
fn from(max_thread_count: MaxThreadCount) -> OsStr
Converts to this type from the input type.
source§impl From<u8> for MaxThreadCount
impl From<u8> for MaxThreadCount
source§impl FromStr for MaxThreadCount
impl FromStr for MaxThreadCount
source§impl PartialEq for MaxThreadCount
impl PartialEq for MaxThreadCount
source§fn eq(&self, other: &MaxThreadCount) -> bool
fn eq(&self, other: &MaxThreadCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MaxThreadCount
impl PartialOrd for MaxThreadCount
source§fn partial_cmp(&self, other: &MaxThreadCount) -> Option<Ordering>
fn partial_cmp(&self, other: &MaxThreadCount) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MaxThreadCount
impl Serialize for MaxThreadCount
impl Copy for MaxThreadCount
impl StructuralPartialEq for MaxThreadCount
Auto Trait Implementations§
impl Freeze for MaxThreadCount
impl RefUnwindSafe for MaxThreadCount
impl Send for MaxThreadCount
impl Sync for MaxThreadCount
impl Unpin for MaxThreadCount
impl UnwindSafe for MaxThreadCount
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> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more
source§impl<I> IntoResettable<OsStr> for I
impl<I> IntoResettable<OsStr> for I
source§fn into_resettable(self) -> Resettable<OsStr>
fn into_resettable(self) -> Resettable<OsStr>
Convert to the intended resettable type