export.rs
SHA-2564e3ed8aa2b0e5d9c18f462183dff7fa4772a30e88e6b3cc0fb9712282ecbe0c5
Malecule∅
Evidence
1:9… ight 2017 Serde Developers
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> o …
5:28… pensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9pub use lib::clone::Clone;
10pub use lib::convert::{From, Into};
11pub use lib::default::Default;
12pub use lib::fmt::{self, Formatter};
13pub use lib::marker::PhantomData;
14pub use lib::option::Option::{self, None, Some};
15pub use lib::result::Result::{self, Err, Ok};
16
17pub use self::string::from_utf8_lossy;
18
19#[cfg(any(feature = "alloc", feature = "std"))]
20pub use lib::Vec;
21
22mod string {
23 use lib::*;
24
25 #[cfg(any(feature = "std", feature = "alloc"))]
26 pub fn from_utf8_lossy(bytes: &[u8]) …
33:49… t(value, VARIANTS))
34 //
35 // so it is okay for the return type to be different from the std case as long
36 // as the above works.
37 #[cfg( …