Add `Default` as a required trait

I could make KStruct require `fn new`, but what I really want already exists.
master
Bradlee Speice 2019-04-29 14:05:03 -04:00
parent 01d42890f6
commit 4b6e5181b2
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ pub enum KError<'a> {
}
pub type KResult<'a, T> = Result<T, KError<'a>>;
pub trait KStruct<'a> {
pub trait KStruct<'a>: Default {
type Parent: KStruct<'a>;
type Root: KStruct<'a>;