-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
bounded-vec/src/bounded_vec.rs
Line 14 in 8265180
| // Assert<{ L > 0 }>: IsTrue, |
that compiles for me:
#[allow(non_snake_case)]
pub trait RC5<Word, const WS: usize, const R: u8, const B: u8>
where
Word: Sized
+ WrappingShl<Output = Word>
+ WrappingShr<Output = Word>
+ BitAnd<Output = Word>
+ Add<Output = Word>
+ BitOr<Word, Output = Word>
+ WrappingAdd
+ Copy
+ LeBytes<WS>
+ BitXor<Output = Word>
+ From<u8>
+ Zero,
{
const W_BYTES: u8 = if std::mem::size_of::<Word>() > WS || Self::R < Self::B {
panic!("Word size must be WS")
} else {
WS as u8
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels