1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/// This module holds the two dom implementations we use. We distingush between /// owned and borrowed. The difference being is that the borrowed value will /// use `&str` as its string type, refferencing the input, while owned will /// allocate a new String for each value. /// /// Note that since json strings allow for for escape sequences the borrowed /// value does not impement zero copy parsing, it does however not allocate /// new memory for strings. /// /// This differs notably from serds zero copy implementation as, unlike serde, /// we do not require prior knowledge sbout string comtent to to take advantage /// of it. pub mod borrowed; pub mod owned; pub use self::borrowed::{to_value as to_borrowed_value, Value as BorrowedValue}; pub use self::owned::{to_value as to_owned_value, Value as OwnedValue};