pub struct Compressor<T> { /* private fields */ }
Expand description
座標圧縮のための構造体
Implementations§
Source§impl<T: Ord + Eq> Compressor<T>
impl<T: Ord + Eq> Compressor<T>
Sourcepub fn compress<'a>(
&'a self,
values: impl IntoIterator<Item = T> + 'a,
) -> impl Iterator<Item = usize> + 'a
pub fn compress<'a>( &'a self, values: impl IntoIterator<Item = T> + 'a, ) -> impl Iterator<Item = usize> + 'a
values
の要素をすべて座標圧縮する。
Sourcepub fn decompress<'a>(
&'a self,
indices: impl IntoIterator<Item = usize> + 'a,
) -> impl Iterator<Item = &'a T> + 'a
pub fn decompress<'a>( &'a self, indices: impl IntoIterator<Item = usize> + 'a, ) -> impl Iterator<Item = &'a T> + 'a
values
の要素をすべて復元する。
Trait Implementations§
Source§impl<T: Clone> Clone for Compressor<T>
impl<T: Clone> Clone for Compressor<T>
Source§fn clone(&self) -> Compressor<T>
fn clone(&self) -> Compressor<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for Compressor<T>
impl<T> RefUnwindSafe for Compressor<T>where
T: RefUnwindSafe,
impl<T> Send for Compressor<T>where
T: Send,
impl<T> Sync for Compressor<T>where
T: Sync,
impl<T> Unpin for Compressor<T>where
T: Unpin,
impl<T> UnwindSafe for Compressor<T>where
T: 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