diff options
Diffstat (limited to 'common/object/src/lib.rs')
| -rw-r--r-- | common/object/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs index c057163..a73de08 100644 --- a/common/object/src/lib.rs +++ b/common/object/src/lib.rs @@ -26,6 +26,11 @@ use std::{collections::BTreeSet, fmt::Display, hash::Hash, marker::PhantomData}; #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct Tag(pub u32); +impl Default for Tag { + fn default() -> Self { + Self::new(b"1111") + } +} impl Tag { pub const fn new(fourcc: &[u8; 4]) -> Self { Self(u32::from_le_bytes(*fourcc)) |