pub enum Unsafe {
None,
UnsafeKeyword,
UnsafePlatformMemCpy,
}
Expand description
Whether and how unsafe
in generated C# should be emitted.
Variants§
None
Do not use C# unsafe
.
UnsafeKeyword
Use unsafe
for performance optimizations (Unity compatible).
UnsafePlatformMemCpy
Also use unsafe
for slice copies.
Implementations§
Trait Implementations§
impl Copy for Unsafe
impl Eq for Unsafe
impl StructuralPartialEq for Unsafe
Auto Trait Implementations§
impl Freeze for Unsafe
impl RefUnwindSafe for Unsafe
impl Send for Unsafe
impl Sync for Unsafe
impl Unpin for Unsafe
impl UnwindSafe for Unsafe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more