Skip to main content

VolumeConstruct

Trait VolumeConstruct 

Source
pub trait VolumeConstruct<T, E: Debug> {
    // Required methods
    fn new_checked(t: impl Into<T>) -> Result<Self, E>
       where Self: Sized;
    fn new_unchecked(t: impl Into<T>) -> Self;

    // Provided method
    fn new_unchecked_release(t: impl Into<T>) -> Self
       where Self: Sized { ... }
}

Required Methods§

Source

fn new_checked(t: impl Into<T>) -> Result<Self, E>
where Self: Sized,

Source

fn new_unchecked(t: impl Into<T>) -> Self

Provided Methods§

Source

fn new_unchecked_release(t: impl Into<T>) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§