Struct std::alloc::LayoutError
1.50.0 · source · [−]#[non_exhaustive]pub struct LayoutError;Expand description
The parameters given to Layout::from_size_align
or some other Layout constructor
do not satisfy its documented constraints.
Trait Implementations
impl Clone for LayoutError
source
impl Clone for LayoutError
sourcefn clone(&self) -> LayoutError
source
fn clone(&self) -> LayoutError
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for LayoutError
source
impl Debug for LayoutError
sourceimpl Display for LayoutError
1.28.0 · source
impl Display for LayoutError
1.28.0 · sourceimpl Error for LayoutError
1.28.0 · source
impl Error for LayoutError
1.28.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
source
fn backtrace(&self) -> Option<&Backtrace>
sourceReturns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0 · source
fn description(&self) -> &str
1.0.0 · source👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<LayoutError> for TryReserveErrorKind
source
impl From<LayoutError> for TryReserveErrorKind
sourcefn from(LayoutError) -> TryReserveErrorKind
source
fn from(LayoutError) -> TryReserveErrorKind
sourceAlways evaluates to TryReserveErrorKind::CapacityOverflow.
impl PartialEq<LayoutError> for LayoutError
source
impl PartialEq<LayoutError> for LayoutError
sourceimpl Eq for LayoutError
sourceimpl StructuralEq for LayoutError
sourceimpl StructuralPartialEq for LayoutError
sourceAuto Trait Implementations
impl RefUnwindSafe for LayoutError
impl Send for LayoutError
impl Sync for LayoutError
impl Unpin for LayoutError
impl UnwindSafe for LayoutError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more