Debian Codegraph @

src/widgets/process_table/query/error.rs

raw symbols SCIP
1 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::{
2 borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#,
3 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#, Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#},
4 };
5
6 #[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:)]
7 pub(craterust-analyzer cargo bottom 0.14.9 crate/) struct QueryErrorrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError# {
8 reasonrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError#reason.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>,
9 }
10
11 impl QueryErrorrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError# {
12 #[inline]
13 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn newrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError]new().<I: Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>>>(reason: I) -> Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError] {
14 Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError] {
15 reasonrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError#reason.: reason.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#into().(),
16 }
17 }
18
19 #[inline]
20 pub(superrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/) fn missing_valuerust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError]missing_value().() -> Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError] {
21 Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError] {
22 reasonrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError#reason.: "Missing value".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
23 }
24 }
25 }
26
27 impl Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for QueryErrorrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError# {
28 fn fmtrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError][Display]fmt().(&self, f: &mut 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# {
29 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "{}", self.reasonrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError#reason.)
30 }
31 }
32
33 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<regexrust-analyzer cargo regex 1.13.1 crate/::Errorrust-analyzer cargo regex 1.13.1 error/Error#> for QueryErrorrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError# {
34 fn fromrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError][`From<regex::Error>`]from().(err: regexrust-analyzer cargo regex 1.13.1 crate/::Errorrust-analyzer cargo regex 1.13.1 error/Error#) -> Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError][`From<regex::Error>`] {
35 Selfrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError][`From<regex::Error>`]::newrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/impl#[QueryError]new().(err.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().())
36 }
37 }
38
39 pub(superrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/) type QueryResultrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryResult#<T> = Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<T, QueryErrorrust-analyzer cargo bottom 0.14.9 widgets/process_table/query/error/QueryError#>;