pub struct FixedVecMapFactory<K, V, F> { /* private fields */ }
Implementations§
Source§impl<K, V, F> FixedVecMapFactory<K, V, F>
impl<K, V, F> FixedVecMapFactory<K, V, F>
Sourcepub fn new(key_to_index: F, len: usize) -> Self
pub fn new(key_to_index: F, len: usize) -> Self
Examples found in repository?
crates/competitive/src/data_structure/transducer.rs (line 135)
124 pub fn with_fixed_vecmap<F>(
125 self,
126 key_to_index: F,
127 len: usize,
128 ) -> Transducerdp<M, A, VecMap<true, A::State, M::T, F>>
129 where
130 F: Fn(&A::State) -> usize + Clone,
131 {
132 Transducerdp::new(
133 self.fst,
134 self.init,
135 FixedVecMapFactory::new(key_to_index, len),
136 )
137 }
Trait Implementations§
Source§impl<K: Clone, V: Clone, F: Clone> Clone for FixedVecMapFactory<K, V, F>
impl<K: Clone, V: Clone, F: Clone> Clone for FixedVecMapFactory<K, V, F>
Source§fn clone(&self) -> FixedVecMapFactory<K, V, F>
fn clone(&self) -> FixedVecMapFactory<K, V, F>
Returns a duplicate 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<K, V, F> ContainerFactory for FixedVecMapFactory<K, V, F>
impl<K, V, F> ContainerFactory for FixedVecMapFactory<K, V, F>
Auto Trait Implementations§
impl<K, V, F> Freeze for FixedVecMapFactory<K, V, F>where
F: Freeze,
impl<K, V, F> RefUnwindSafe for FixedVecMapFactory<K, V, F>where
F: RefUnwindSafe,
impl<K, V, F> Send for FixedVecMapFactory<K, V, F>where
F: Send,
impl<K, V, F> Sync for FixedVecMapFactory<K, V, F>where
F: Sync,
impl<K, V, F> Unpin for FixedVecMapFactory<K, V, F>where
F: Unpin,
impl<K, V, F> UnwindSafe for FixedVecMapFactory<K, V, F>where
F: 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