diff options
Diffstat (limited to 'common/object')
| -rw-r--r-- | common/object/src/value.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/object/src/value.rs b/common/object/src/value.rs index 83878d3..cf6dad2 100644 --- a/common/object/src/value.rs +++ b/common/object/src/value.rs @@ -175,3 +175,18 @@ impl ValueStore for &[u8] { self.len() } } +impl<'a> Value<'a> for () { + const ALIGNED: bool = true; + fn load_aligned(_buf: &'a [u32]) -> Option<Self> { + Some(()) + } +} +impl ValueStore for () { + fn is_aligned(&self) -> bool { + true + } + fn store_aligned(&self, _buf: &mut Vec<u32>) {} + fn size(&self) -> usize { + 0 + } +} |