#[repr(C)]pub struct StringWrapper {
pub value: String,
}Expand description
Shared struct for optional string types.
This is needed because String can’t be used directly in the UniquePtr type.
A null UniquePtr<StringWrapper> represents std::nullopt.
Fields§
§value: StringTrait Implementations§
Source§impl ExternType for StringWrapper
impl ExternType for StringWrapper
impl UniquePtrTarget for StringWrapper
Auto Trait Implementations§
impl Freeze for StringWrapper
impl RefUnwindSafe for StringWrapper
impl Send for StringWrapper
impl Sync for StringWrapper
impl Unpin for StringWrapper
impl UnsafeUnpin for StringWrapper
impl UnwindSafe for StringWrapper
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