pub trait UnsizedCopyFrom: Sized {
type Source: ?Sized + UnsizedCopy;
// Required method
fn unsized_copy_from(value: &Self::Source) -> Self;
}
Expand description
A container type that can be copied into.
Required Associated Types§
Sourcetype Source: ?Sized + UnsizedCopy
type Source: ?Sized + UnsizedCopy
The source type to copy from.
Required Methods§
Sourcefn unsized_copy_from(value: &Self::Source) -> Self
fn unsized_copy_from(value: &Self::Source) -> Self
Create a new Self
by copying the given value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.