pub enum CppStdlib {
LibStdCpp,
LibCpp,
Msvc,
}Expand description
C++ standard library implementation variant.
Affects hardcoded sizes of types like std::string, std::mutex, etc.
The default is LibStdCpp (GCC / Linux / glibc).
Variants§
LibStdCpp
GCC libstdc++ (Linux/glibc default). std::string = 32B.
LibCpp
LLVM libc++ (Clang/macOS/Android). std::string = 24B.
Msvc
Microsoft MSVC STL (Windows). std::string = 32B (SSO = 16 chars).
Trait Implementations§
impl Copy for CppStdlib
impl Eq for CppStdlib
impl StructuralPartialEq for CppStdlib
Auto Trait Implementations§
impl Freeze for CppStdlib
impl RefUnwindSafe for CppStdlib
impl Send for CppStdlib
impl Sync for CppStdlib
impl Unpin for CppStdlib
impl UnsafeUnpin for CppStdlib
impl UnwindSafe for CppStdlib
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