pub struct MyDepType { /* private fields */ }
Implementations
sourceimpl MyDepType
impl MyDepType
pub const PROP_1: DepProp<Self, bool> = {
unsafe {
let offset =
{
let uninit =
::memoffset::__priv::mem::MaybeUninit::uninit();
let base_ptr: *const MyDepTypeCore = uninit.as_ptr();
let field_ptr =
{
let MyDepTypeCore { prop_1: _, .. };
let base = base_ptr;
unsafe {
{ &raw const (*(base as *const MyDepTypeCore)).prop_1 }
}
};
{
let field = field_ptr;
let base = base_ptr;
unsafe {
(field as *const u8).offset_from(base as *const u8) as usize
}
}
};
crate::DepProp::new(offset)
}
}
pub const PROP_2: DepProp<Self, i32> = {
unsafe {
let offset =
{
let uninit =
::memoffset::__priv::mem::MaybeUninit::uninit();
let base_ptr: *const MyDepTypeCore = uninit.as_ptr();
let field_ptr =
{
let MyDepTypeCore { prop_2: _, .. };
let base = base_ptr;
unsafe {
{ &raw const (*(base as *const MyDepTypeCore)).prop_2 }
}
};
{
let field = field_ptr;
let base = base_ptr;
unsafe {
(field as *const u8).offset_from(base as *const u8) as usize
}
}
};
crate::DepProp::new(offset)
}
}
Trait Implementations
sourceimpl DepObj<MyDepType, MyDepType> for MyDepTypeId
impl DepObj<MyDepType, MyDepType> for MyDepTypeId
const STATE_PART: std_any_TypeId = crate::std_any_TypeId::of::()
fn get_raw<'state_part_lifetime>(
state_part: &'state_part_lifetime dyn std_any_Any,
this: components_arena_RawId
) -> &'state_part_lifetime MyDepType
fn get_raw_mut<'state_part_lifetime>(
state_part: &'state_part_lifetime mut dyn std_any_Any,
this: components_arena_RawId
) -> &'state_part_lifetime mut MyDepType
fn get(state: &dyn State, id: RawId) -> DepObjRef<'_, Type>
fn get_mut(state: &mut dyn State, id: RawId) -> DepObjMut<'_, Type>
Auto Trait Implementations
impl !RefUnwindSafe for MyDepType
impl Send for MyDepType
impl Sync for MyDepType
impl Unpin for MyDepType
impl !UnwindSafe for MyDepType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more