Struct babycat::BatchArgs [−][src]
#[repr(C)]pub struct BatchArgs { pub num_workers: usize, }
Expand description
Configures multithreading in Babycat.
Babycat uses Rayon for multithreading, which
by default
will initialize as many threads as logical CPU cores on your machine.
You can use this BatchArgs
struct to specify a different
number of threads if needed.
Fields
num_workers: usize
Trait Implementations
impl<'de> Deserialize<'de> for BatchArgs
[src]
impl<'de> Deserialize<'de> for BatchArgs
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Copy for BatchArgs
[src]
impl Eq for BatchArgs
[src]
impl StructuralEq for BatchArgs
[src]
impl StructuralPartialEq for BatchArgs
[src]
Auto Trait Implementations
impl RefUnwindSafe for BatchArgs
impl Send for BatchArgs
impl Sync for BatchArgs
impl Unpin for BatchArgs
impl UnwindSafe for BatchArgs
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<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
pub fn into_sample(self) -> T
impl<T> Pointable for T
impl<T> Pointable for T
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
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,