Home
last modified time | relevance | path

Searched refs:i128 (Results 1 – 16 of 16) sorted by relevance

/linux/rust/zerocopy/src/pointer/
H A Dmod.rs244 pub struct Projection<F: ?Sized, const VARIANT_ID: i128, const FIELD_ID: i128> {
251 unsafe impl<T: ?Sized, F, const VARIANT_ID: i128, const FIELD_ID: i128> Project<T, T::Type>
295 unsafe impl<T: ?Sized, F, const FIELD_ID: i128> Cast<T, T::Type>
H A Dptr.rs878 pub fn project<F, const VARIANT_ID: i128, const FIELD_ID: i128>( in project() argument
/linux/rust/zerocopy/src/
H A Dbyteorder.rs832 [i32, i64, i128, isize],
833 [i32, i64, i128, isize],
849 [i64, i128],
850 [i64, i128],
866 [i128],
867 [i128],
875 i128,
878 i128::from_be_bytes,
879 i128::to_be_bytes,
880 i128::from_le_bytes,
[all …]
H A Dwrappers.rs797 unsafe impl<T, Field, const VARIANT_ID: i128, const FIELD_ID: i128>
825 unsafe impl<T, Field, I, const VARIANT_ID: i128, const FIELD_ID: i128>
H A Dlib.rs1105 u8, i8, u16, i16, u32, i32, u64, i64, u128, i128, usize, isize, f32, f64,
1179 pub const STRUCT_VARIANT_ID: i128 = -1;
1181 pub const UNION_VARIANT_ID: i128 = -2;
1183 pub const REPR_C_UNION_VARIANT_ID: i128 = -3;
1235 pub unsafe trait HasField<Field, const VARIANT_ID: i128, const FIELD_ID: i128>:
1273 pub unsafe trait ProjectField<Field, I, const VARIANT_ID: i128, const FIELD_ID: i128>:
1305 struct Projection<T, Field, I, const VARIANT_ID: i128, const FIELD_ID: i128>( in is_projectable()
1312 impl<T, Field, I, const VARIANT_ID: i128, const FIELD_ID: i128> IsInfallible in is_projectable()
H A Dimpls.rs78 unsafe_impl!(i128: Immutable, TryFromBytes, FromZeros, FromBytes, IntoBytes);
250 NonZeroI128[i128],
2001 i128: KnownLayout, in test_impls()
/linux/rust/kernel/
H A Dnum.rs79 i128: Signed,
H A Dfmt.rs198 i128,
H A Ddma.rs341 // To safely check the value, we cast it to a wide signed integer type (`i128`) in const_cast()
343 let wide_val = val as i128; in const_cast()
346 // CAST: `u32::MAX` is cast to `i128` to match the type of `wide_val` for the comparison. in const_cast()
347 if wide_val < 0 || wide_val > u32::MAX as i128 { in const_cast()
/linux/rust/quote/
H A Dto_tokens.rs150 impl ToTokens for i128 { implementation
/linux/rust/zerocopy/src/util/
H A Dmacro_util.rs479 pub const fn hash_name(name: &str) -> i128 { in hash_name() argument
495 return i128::from_ne_bytes(bytes); in hash_name()
510 i128::from_ne_bytes(hash.to_ne_bytes()) in hash_name()
/linux/rust/proc-macro2/
H A Dlib.rs1134 i128_suffixed => i128,
1149 i128_unsuffixed => i128,
H A Dfallback.rs996 i128_suffixed => i128,
1014 i128_unsuffixed => i128,
H A Dwrapper.rs819 i128_suffixed => i128,
837 i128_unsuffixed => i128,
/linux/rust/pin-init/src/
H A Dlib.rs1638 i8, i16, i32, i64, i128, isize,
1747 NonZero<i8>, NonZero<i16>, NonZero<i32>, NonZero<i64>, NonZero<i128>, NonZero<isize>,
/linux/rust/zerocopy-derive/
H A Drepr.rs239 I128 => ts.append_all(quote_spanned! { self.span => #[repr(i128)] }), in to_tokens()