Struct oxygengine_core::ecs::UnsafeScope
source · [−]pub struct UnsafeScope;
Implementations
sourceimpl UnsafeScope
impl UnsafeScope
sourcepub unsafe fn lifetime_ref<'a>(&self) -> &'a Self
pub unsafe fn lifetime_ref<'a>(&self) -> &'a Self
Safety
Extending lifetimes is unsafe and when done wrongly can cause undefined behaviour. Make sure lifetime can be extended to the scope where data behind reference won’t be moved.
sourcepub unsafe fn lifetime_mut<'a>(&mut self) -> &'a mut Self
pub unsafe fn lifetime_mut<'a>(&mut self) -> &'a mut Self
Safety
Extending lifetimes is unsafe and when done wrongly can cause undefined behaviour. Make sure lifetime can be extended to the scope where data behind reference won’t be moved.
Auto Trait Implementations
impl RefUnwindSafe for UnsafeScope
impl Send for UnsafeScope
impl Sync for UnsafeScope
impl Unpin for UnsafeScope
impl UnwindSafe for UnsafeScope
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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