Debian Codegraph @

src/lib.rs

raw symbols SCIP
1 #![deny(missing_docs)]
2 #![doc = include_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include_str!!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
3
4 pub mod losslessrust-analyzer cargo r-description 0.4.1 lossless/;
5 pub mod lossyrust-analyzer cargo r-description 0.4.1 lossy/;
6
7 mod relationsrust-analyzer cargo r-description 0.4.1 relations/;
8 pub use relationsrust-analyzer cargo r-description 0.4.1 relations/::{VersionConstraintrust-analyzer cargo r-description 0.4.1 relations/VersionConstraint#, VersionLookuprust-analyzer cargo r-description 0.4.1 relations/VersionLookup#};
9
10 pub use lossyrust-analyzer cargo r-description 0.4.1 lossy/::RDescriptionrust-analyzer cargo r-description 0.4.1 lossy/RDescription#;
11
12 mod versionrust-analyzer cargo r-description 0.4.1 version/;
13 pub use versionrust-analyzer cargo r-description 0.4.1 version/::Versionrust-analyzer cargo r-description 0.4.1 version/Version#;
14
15 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:)]
16 /// A block of R code
17 ///
18 /// This is a simple wrapper around a string that represents a block of R code, as used in e.g. the
19 /// Authors@R field.
20 pub struct RCoderust-analyzer cargo r-description 0.4.1 RCode#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#);
21
22 impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr# for RCoderust-analyzer cargo r-description 0.4.1 RCode# {
23 type Errrust-analyzer cargo r-description 0.4.1 impl#[RCode][FromStr]Err# = stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::numrust-analyzer cargo std https://github.com/rust-lang/rust/library/std num/::ParseIntErrorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/error/ParseIntError#;
24
25 fn from_strrust-analyzer cargo r-description 0.4.1 impl#[RCode][FromStr]from_str().(s: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Selfrust-analyzer cargo r-description 0.4.1 impl#[RCode][FromStr], Selfrust-analyzer cargo r-description 0.4.1 impl#[RCode][FromStr]::Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#Err#> {
26 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Selfrust-analyzer cargo r-description 0.4.1 impl#[RCode][FromStr](s.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()))
27 }
28 }
29
30 impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for RCoderust-analyzer cargo r-description 0.4.1 RCode# {
31 fn fmtrust-analyzer cargo r-description 0.4.1 impl#[RCode][Display]fmt().(&self, f: &mut stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
32 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "{}", self.0rust-analyzer cargo r-description 0.4.1 RCode#0.)
33 }
34 }