Skip to content

feat: implement Default trait for ThinBox, TaggedOption, Vec and String - #272

Open
Arman (Unic-X) wants to merge 1 commit into
getditto:masterfrom
Unic-X:master
Open

feat: implement Default trait for ThinBox, TaggedOption, Vec and String#272
Arman (Unic-X) wants to merge 1 commit into
getditto:masterfrom
Unic-X:master

Conversation

@Unic-X

Copy link
Copy Markdown

Add Default implementations for ThinBox, TaggedOption, Vec, and String types to improves ergonomics and compatibility while matching the behavior of Box<T>,Option<T>,Vec<T> and String whose default value are Box::new(), None, Vec::new() and String::from("") respectively

… and `String`

Add `Default` implementations for `ThinBox`, `TaggedOption`, `Vec`, and `String` types to improves ergonomics and compatibility while matching the behavior of `Box<T>`,`Option<T>`,`Vec<T>` and `String` whose default value are `Box::new()`, `None`, `Vec::new()` and `String::from("")` respectively
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant