Lines Matching refs:T

63 …     const fn phantom__<T>(_: &T) -> ::core::marker::PhantomData<T> { ::core::marker::PhantomData }
168 pub const fn vmstate_scalar_type<T: VMState>(_: PhantomData<T>) -> VMStateFieldType { in vmstate_scalar_type()
169 T::SCALAR_TYPE in vmstate_scalar_type()
174 pub const fn vmstate_base<T: VMState>(_: PhantomData<T>) -> VMStateField { in vmstate_base()
175 T::BASE in vmstate_base()
181 pub const fn vmstate_varray_flag<T: VMState>(_: PhantomData<T>) -> VMStateFlags { in vmstate_varray_flag()
182 T::VARRAY_FLAG in vmstate_varray_flag()
341 impl_vmstate_transparent!(std::cell::Cell<T> where T: VMState);
342 impl_vmstate_transparent!(std::cell::UnsafeCell<T> where T: VMState);
343 impl_vmstate_transparent!(std::pin::Pin<T> where T: VMState);
344 impl_vmstate_transparent!(crate::cell::BqlCell<T> where T: VMState);
345 impl_vmstate_transparent!(crate::cell::BqlRefCell<T> where T: VMState);
346 impl_vmstate_transparent!(crate::cell::Opaque<T> where T: VMState);
402 const SCALAR_TYPE: VMStateFieldType = <T as VMState>::SCALAR_TYPE;
408 impl_vmstate_pointer!(*const T where T: VMState);
409 impl_vmstate_pointer!(*mut T where T: VMState);
410 impl_vmstate_pointer!(NonNull<T> where T: VMState);
414 impl_vmstate_pointer!(Box<T> where T: VMState);
415 impl_vmstate_pointer!(Owned<T> where T: VMState + ObjectType);
420 unsafe impl<T: VMState, const N: usize> VMState for [T; N] {
421 const SCALAR_TYPE: VMStateFieldType = <T as VMState>::SCALAR_TYPE;
422 const BASE: VMStateField = <T as VMState>::BASE.with_array_flag(N);
439 pub extern "C" fn rust_vms_test_field_exists<T, F: for<'a> FnCall<(&'a T, u8), bool>>( in rust_vms_test_field_exists() argument
444 let owner: &T = unsafe { &*(opaque.cast::<T>()) }; in rust_vms_test_field_exists()
457 const fn test_cb_builder__<T, F: for<'a> $crate::callbacks::FnCall<(&'a T, u8), bool>>(
461 $crate::vmstate::rust_vms_test_field_exists::<T, F>
464 const fn phantom__<T>(_: &T) -> ::core::marker::PhantomData<T> {