1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
// License: see LICENSE file at root directory of `master` branch //! # `0.17.0` _(December 13th, 2019)_ //! //! ## Changes //! //! - [`Value`][::Value]: //! //! + Implemented [`FromStr`][core::str/FromStr], which is an equivalent of [`parse_bytes()`][::parse_bytes()]. //! //! + Added new shortcuts for [`Object`][::Value/Object]: //! //! ```ignore //! pub fn maybe_by(&self, keys: &[&str]) -> Result<Option<&Self>>; //! pub fn maybe_mut_by(&mut self, keys: &[&str]) -> Result<Option<&mut Self>>; //! pub fn maybe_take_by(&mut self, keys: &[&str]) -> Result<Option<Self>>; //! ``` //! //! + ***Breaking changes:*** changed result type of these functions: //! //! ```compile_fail //! pub fn by(&self, keys: &[&str]) -> Result<Option<&Self>>; //! pub fn mut_by(&mut self, keys: &[&str]) -> Result<Option<&mut Self>>; //! pub fn take_by(&mut self, keys: &[&str]) -> Result<Option<Self>>; //! ``` //! //! into: //! //! ```ignore //! pub fn by(&self, keys: &[&str]) -> Result<&Self>; //! pub fn mut_by(&mut self, keys: &[&str]) -> Result<&mut Self>; //! pub fn take_by(&mut self, keys: &[&str]) -> Result<Self>; //! ``` //! //! - Optimized code. //! //! [::Value]: ../enum.Value.html //! [::Value/Object]: ../enum.Value.html#variant.Object //! [::parse_bytes()]: ../fn.parse_bytes.html //! //! [core::str/FromStr]: https://doc.rust-lang.org/core/str/trait.FromStr.html //! //! <!-- 6c7646a9-b83c08ea-293526a9-07b9e036-771f8426-e7b616d7-b4c80325-7c945520-63b0d381-cc74fde9-9b3a28d4-6fa6c0d9-7473c4c2-ff18119d-3a308dd1-9452dfff --> //! //! ## Dependencies //! //! No dependencies. //! //! ## Development dependencies //! //! No dependencies. //! //! ## Build dependencies //! //! No dependencies.