pub struct Legacy<T>(/* private fields */);Expand description
Legacy wrapper for tuple types created with redb version 2.x
See the CHANGELOG.md file for more details
Trait Implementations§
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key, T10: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key, T10: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
Source§impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key, T10: Key, T11: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
impl<T0: Key, T1: Key, T2: Key, T3: Key, T4: Key, T5: Key, T6: Key, T7: Key, T8: Key, T9: Key, T10: Key, T11: Key> Key for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
Source§impl<T: Value> Value for Legacy<(T,)>
impl<T: Value> Value for Legacy<(T,)>
Source§type SelfType<'a> = (<T as Value>::SelfType<'a>,)
where
Self: 'a
type SelfType<'a> = (<T as Value>::SelfType<'a>,) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = <T as Value>::AsBytes<'a> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value> Value for Legacy<(T0, T1)>
impl<T0: Value, T1: Value> Value for Legacy<(T0, T1)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value> Value for Legacy<(T0, T1, T2)>
impl<T0: Value, T1: Value, T2: Value> Value for Legacy<(T0, T1, T2)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value> Value for Legacy<(T0, T1, T2, T3)>
impl<T0: Value, T1: Value, T2: Value, T3: Value> Value for Legacy<(T0, T1, T2, T3)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value> Value for Legacy<(T0, T1, T2, T3, T4)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value> Value for Legacy<(T0, T1, T2, T3, T4)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value, T10: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value, T10: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>, <T10 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>, <T10 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Source§impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value, T10: Value, T11: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
impl<T0: Value, T1: Value, T2: Value, T3: Value, T4: Value, T5: Value, T6: Value, T7: Value, T8: Value, T9: Value, T10: Value, T11: Value> Value for Legacy<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)>
Source§type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>, <T10 as Value>::SelfType<'a>, <T11 as Value>::SelfType<'a>)
where
Self: 'a
type SelfType<'a> = (<T0 as Value>::SelfType<'a>, <T1 as Value>::SelfType<'a>, <T2 as Value>::SelfType<'a>, <T3 as Value>::SelfType<'a>, <T4 as Value>::SelfType<'a>, <T5 as Value>::SelfType<'a>, <T6 as Value>::SelfType<'a>, <T7 as Value>::SelfType<'a>, <T8 as Value>::SelfType<'a>, <T9 as Value>::SelfType<'a>, <T10 as Value>::SelfType<'a>, <T11 as Value>::SelfType<'a>) where Self: 'a
SelfType<'a> must be the same type as Self with all lifetimes replaced with ’atype AsBytes<'a> = Vec<u8> where Self: 'a
Source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width
Source§fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
fn from_bytes<'a>(data: &'a [u8]) -> Self::SelfType<'a>where
Self: 'a,
Deserializes data
Implementations may return a view over data, or an owned type
Auto Trait Implementations§
impl<T> Freeze for Legacy<T>where
T: Freeze,
impl<T> RefUnwindSafe for Legacy<T>where
T: RefUnwindSafe,
impl<T> Send for Legacy<T>where
T: Send,
impl<T> Sync for Legacy<T>where
T: Sync,
impl<T> Unpin for Legacy<T>where
T: Unpin,
impl<T> UnwindSafe for Legacy<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