Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value from vec #142

Merged
merged 2 commits into from Nov 10, 2022
Merged

Value from vec #142

merged 2 commits into from Nov 10, 2022

Commits on Nov 9, 2022

  1. Remove 'Arc' around u128 and i128 in ValueRepr

    The largest variant is already at least 16 bytes, so the `Arc` only adds
    an allocation without gain
    SergioBenitez committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    c11507c View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. Add 'FromIterator', change 'From' 'Value' impls

    Removes the now unnecessary `Value::from_arc_object`.
    
    Adds `FromIterator` impls for:
      * 'Value' for sequences (items of `V: Into<Value>`)
      * `Value` for maps (items of `(K: Into<StaticKey>, V: Into<Value>)`)
    
    Adds 'From' impls to `Value` from:
      * `Arc<T: Object>`
      * `u128`
      * `i128`
    
    Finally documents the new functionality.
    SergioBenitez committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    3b047bd View commit details
    Browse the repository at this point in the history