pub struct String { /* private fields */ }Expand description
FFI analog of std::string::String.
See the module documentation for more details and examples.
Implementationsยง
Trait Implementationsยง
impl Send for String
impl Sync for String
Sourceยงimpl TypeInfo for String
impl TypeInfo for String
Sourceยงconst ASYNC_SAFE: bool = true
const ASYNC_SAFE: bool = true
Whether this type can appear in an async service method.
Sourceยงconst SERVICE_SAFE: bool = false
const SERVICE_SAFE: bool = false
Whether this type can appear in a service method.
Sourceยงconst SERVICE_CTOR_SAFE: bool = false
const SERVICE_CTOR_SAFE: bool = false
Whether this type is valid as a service constructor return type.
Sourceยงfn register(inventory: &mut impl Inventory)
fn register(inventory: &mut impl Inventory)
Registers this type and all its transitive dependencies with the inventory.
Sourceยงconst OPTION_PTR_SAFE: bool = false
const OPTION_PTR_SAFE: bool = false
Whether
std::Option<Self> uses a niche and is FFI-safe as a pointer
(e.g., references, NonNull, function pointers).Auto Trait Implementationsยง
impl Freeze for String
impl RefUnwindSafe for String
impl Unpin for String
impl UnsafeUnpin for String
impl UnwindSafe for String
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