Struct swift_runtime_sys::root::swift::IsTriviallyCopyable
source · #[repr(C)]pub struct IsTriviallyCopyable {
pub _address: u8,
}
Expand description
Same as \c std::is_trivially_copyable, which we cannot use directly because it is not implemented yet in all C++11 standard libraries.
Unlike \c llvm::isPodLike, this trait should produce a precise result and is not intended to be specialized.
Fields§
§_address: u8
Trait Implementations§
source§impl Clone for IsTriviallyCopyable
impl Clone for IsTriviallyCopyable
source§fn clone(&self) -> IsTriviallyCopyable
fn clone(&self) -> IsTriviallyCopyable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IsTriviallyCopyable
impl Debug for IsTriviallyCopyable
impl Copy for IsTriviallyCopyable
Auto Trait Implementations§
impl Freeze for IsTriviallyCopyable
impl RefUnwindSafe for IsTriviallyCopyable
impl Send for IsTriviallyCopyable
impl Sync for IsTriviallyCopyable
impl Unpin for IsTriviallyCopyable
impl UnwindSafe for IsTriviallyCopyable
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)