14 lines
352 B
Rust
14 lines
352 B
Rust
/// This trait is used for creating an instance of an concrete implementation from an base trait.
|
|
/// This trait allows the output to be different in size.
|
|
pub trait Construct {
|
|
fn new() -> Box<Self>
|
|
where
|
|
Self: Sized;
|
|
}
|
|
|
|
/// This trait can be used to create an empty instance of an struct.
|
|
pub trait Empty {
|
|
fn empty() -> Self;
|
|
}
|
|
|