Cache more queries on disk.
This commit is contained in:
parent
3a08bd7873
commit
9900ea352b
15 changed files with 104 additions and 83 deletions
|
@ -171,16 +171,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<E: Encoder, T, S> Encodable<E> for &HashSet<T, S>
|
||||
where
|
||||
T: Encodable<E> + Eq,
|
||||
S: BuildHasher,
|
||||
{
|
||||
fn encode(&self, s: &mut E) -> Result<(), E::Error> {
|
||||
(**self).encode(s)
|
||||
}
|
||||
}
|
||||
|
||||
impl<D: Decoder, T, S> Decodable<D> for HashSet<T, S>
|
||||
where
|
||||
T: Decodable<D> + Hash + Eq,
|
||||
|
|
|
@ -268,6 +268,15 @@ direct_serialize_impls! {
|
|||
char emit_char read_char
|
||||
}
|
||||
|
||||
impl<S: Encoder, T: ?Sized> Encodable<S> for &T
|
||||
where
|
||||
T: Encodable<S>,
|
||||
{
|
||||
fn encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
(**self).encode(s)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for ! {
|
||||
fn encode(&self, _s: &mut S) -> Result<(), S::Error> {
|
||||
unreachable!()
|
||||
|
@ -298,12 +307,6 @@ impl<S: Encoder> Encodable<S> for str {
|
|||
}
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for &str {
|
||||
fn encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
s.emit_str(self)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S: Encoder> Encodable<S> for String {
|
||||
fn encode(&self, s: &mut S) -> Result<(), S::Error> {
|
||||
s.emit_str(&self[..])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue