Lines Matching refs:from
17 ($from:ty as { $($into:ty),* }) => {
22 ::core::stringify!($from),
40 ::core::stringify!($from),
44 ::core::stringify!($from),
51 pub(crate) const fn [<$from _as_ $into>](value: $from) -> $into {
52 kernel::static_assert!(size_of::<$into>() >= size_of::<$from>());
169 ($from:ty => { $($into:ty),* }) => {
174 ::core::stringify!($from),
190 ::core::stringify!($from),
194 ::core::stringify!($from),
200 pub(crate) const fn [<$from _into_ $into>]<const N: $from>() -> $into {
202 static_assert!($from::BITS >= $into::BITS);
205 build_assert!(N >= $into::MIN as $from && N <= $into::MAX as $from);