pub struct ConcurrentColorRepository { /* private fields */ }Implementations§
Source§impl ConcurrentColorRepository
impl ConcurrentColorRepository
pub fn create( dir: impl AsRef<Path>, workers: usize, expected_colors: usize, num_colors: u32, ) -> Result<Self, ColorError>
pub fn resolve_or_insert( &self, color_hash: u64, sources: &[u32], worker: usize, ) -> Result<ColorCoordinate, ColorError>
pub fn get(&self, color_hash: u64) -> Option<ColorCoordinate>
pub fn finish(&self) -> Result<ColorRepositoryManifest, ColorError>
Auto Trait Implementations§
impl !Freeze for ConcurrentColorRepository
impl RefUnwindSafe for ConcurrentColorRepository
impl Send for ConcurrentColorRepository
impl Sync for ConcurrentColorRepository
impl Unpin for ConcurrentColorRepository
impl UnsafeUnpin for ConcurrentColorRepository
impl UnwindSafe for ConcurrentColorRepository
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> 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