/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![allow(unsafe_code)]
//! A replacement for `Box<str>` that has a defined layout for FFI.
usecrate::owned_slice::OwnedSlice; use std::fmt; use std::ops::{Deref, DerefMut};
/// A struct that basically replaces a Box<str>, but with a defined layout, /// suitable for FFI. #[repr(C)] #[derive(Clone, Default, Eq, MallocSizeOf, PartialEq, ToShmem)] pubstruct OwnedStr(OwnedSlice<u8>);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.