pub struct GcCString(/* private fields */);Implementations§
Source§impl GcCString
impl GcCString
pub fn as_ptr(&self) -> *mut CStr
pub fn as_ref<'gc>(&self, _token: &'gc impl GcToken) -> &'gc CStr
pub fn as_mut<'gc>(&mut self, _token: &'gc impl GcToken) -> &'gc mut CStr
Sourcepub unsafe fn as_ref_unconstrained(&self) -> &'static mut CStr
pub unsafe fn as_ref_unconstrained(&self) -> &'static mut CStr
§Safety
The returned reference cannot be used in a thread that is not registered with the GC.
Auto Trait Implementations§
impl !Send for GcCString
impl !Sync for GcCString
impl Freeze for GcCString
impl RefUnwindSafe for GcCString
impl Unpin for GcCString
impl UnsafeUnpin for GcCString
impl UnwindSafe for GcCString
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