Debian Codegraph @

src/build/imp.rs

raw symbols SCIP
1 use superrust-analyzer cargo fluent-uri 0.4.1 build/::BuildErrorrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#;
2 use craterust-analyzer cargo fluent-uri 0.4.1 crate/::{
3 componentrust-analyzer cargo fluent-uri 0.4.1 component/::IAuthorityrust-analyzer cargo fluent-uri 0.4.1 component/IAuthority#,
4 imprust-analyzer cargo fluent-uri 0.4.1 imp/::{AuthMetarust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta#, HostMetarust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#, Metarust-analyzer cargo fluent-uri 0.4.1 imp/Meta#},
5 parserust-analyzer cargo fluent-uri 0.4.1 parse/,
6 pct_encrust-analyzer cargo fluent-uri 0.4.1 pct_enc/::{
7 encoderrust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/::{IRegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/IRegName#, Portrust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/Port#, RegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/RegName#},
8 EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#,
9 },
10 };
11 use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/::Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#;
12 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::{fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Write#, numrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/::NonZeroUsizerust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/nonzero/NonZeroUsize#};
13
14 #[cfg(feature = "net")]
15 use craterust-analyzer cargo fluent-uri 0.4.1 crate/::netrust-analyzer cargo std https://github.com/rust-lang/rust/library/std net/::{IpAddrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr#, Ipv4Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv4Addr#, Ipv6Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv6Addr#};
16
17 pub struct BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner# {
18 pub bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf.: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#,
19 pub metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta.: Metarust-analyzer cargo fluent-uri 0.4.1 imp/Meta#,
20 }
21
22 impl BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner# {
23 pub fn push_schemerust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_scheme().(&mut self, v: &str) {
24 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v);
25 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..scheme_endrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#scheme_end. = NonZeroUsizerust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/nonzero/NonZeroUsize#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/nonzero/impl#[`NonZero<T>`]new().(self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().());
26 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().(':');
27 }
28
29 pub fn start_authorityrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]start_authority().(&mut self) {
30 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().("//");
31 }
32
33 pub fn push_authorityrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_authority().(&mut self, v: IAuthorityrust-analyzer cargo fluent-uri 0.4.1 component/IAuthority#<'_>) {
34 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().("//");
35 let start = self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().();
36 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v.as_strrust-analyzer cargo fluent-uri 0.4.1 component/impl#[`Authority<'a, UserinfoE, RegNameE>`]as_str().());
37
38 let mut meta = v.metarust-analyzer cargo fluent-uri 0.4.1 component/impl#[`Authority<'a, UserinfoE, RegNameE>`]meta().();
39 meta.host_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta#host_bounds..0 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().start;
40 meta.host_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta#host_bounds..1 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`AddAssign<Self>`]add_assign().start;
41 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..auth_metarust-analyzer cargo fluent-uri 0.4.1 imp/Meta#auth_meta. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(meta);
42 }
43
44 pub fn push_userinforust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_userinfo().(&mut self, v: &str) {
45 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v);
46 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().('@');
47 }
48
49 pub fn push_hostrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_host().(&mut self, meta: HostMetarust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#, f: impl FnOncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnOnce#(&mut Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#)) {
50 let start = self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().();
51 f(&mut self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf.);
52 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..auth_metarust-analyzer cargo fluent-uri 0.4.1 imp/Meta#auth_meta. = Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(AuthMetarust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta# {
53 host_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta#host_bounds.: (start, self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().()),
54 host_metarust-analyzer cargo fluent-uri 0.4.1 imp/AuthMeta#host_meta.: meta,
55 });
56 }
57
58 pub fn push_pathrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_path().(&mut self, v: &str) {
59 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..path_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#path_bounds..0 = self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().();
60 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v);
61 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..path_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#path_bounds..1 = self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().();
62 }
63
64 pub fn push_queryrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_query().(&mut self, v: &str) {
65 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().('?');
66 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v);
67 self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..query_endrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#query_end. = NonZeroUsizerust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/nonzero/NonZeroUsize#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/nonzero/impl#[`NonZero<T>`]new().(self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]len().());
68 }
69
70 pub fn push_fragmentrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_fragment().(&mut self, v: &str) {
71 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().('#');
72 self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf..push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(v);
73 }
74
75 pub fn validaterust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]validate().(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), BuildErrorrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#> {
76 fn first_segment_contains_colonrust-analyzer cargo fluent-uri 0.4.1 build/imp/first_segment_contains_colon().(path: &str) -> bool {
77 path.split_oncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]split_once().('/').map_orrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]map_or().(path, |x| x.0).containsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]contains().(':')
78 }
79
80 let (start, end) = self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..path_boundsrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#path_bounds.;
81 let path = &self.bufrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#buf.[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`Index<I>`]index().start..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#end]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String][`Index<I>`]index().;
82
83 if self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..auth_metarust-analyzer cargo fluent-uri 0.4.1 imp/Meta#auth_meta..is_somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_some().() {
84 if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().path.is_emptyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]is_empty().() && !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().path.starts_withrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]starts_with().('/') {
85 return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(BuildErrorrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#::NonemptyRootlessPathrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#NonemptyRootlessPath#);
86 }
87 } else {
88 if path.starts_withrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]starts_with().("//") {
89 return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(BuildErrorrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#::PathStartsWithDoubleSlashrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#PathStartsWithDoubleSlash#);
90 }
91 if self.metarust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#meta..scheme_endrust-analyzer cargo fluent-uri 0.4.1 imp/Meta#scheme_end..is_nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]is_none().() && first_segment_contains_colonrust-analyzer cargo fluent-uri 0.4.1 build/imp/first_segment_contains_colon().(path) {
92 return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(BuildErrorrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#::FirstPathSegmentContainsColonrust-analyzer cargo fluent-uri 0.4.1 build/BuildError#FirstPathSegmentContainsColon#);
93 }
94 }
95 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
96 }
97 }
98
99 pub trait AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> {
100 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#);
101 }
102
103 #[cfg(feature = "net")]
104 impl<'a> AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> for Ipv4Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv4Addr# {
105 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[Ipv4Addr][`AsHost<'a>`]push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#) {
106 b.push_hostrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_host().(HostMetarust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#::Ipv4rust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#Ipv4#(self), |buf| {
107 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(buf, "{self}").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
108 });
109 }
110 }
111
112 #[cfg(feature = "net")]
113 impl<'a> AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> for Ipv6Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv6Addr# {
114 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[Ipv6Addr][`AsHost<'a>`]push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#) {
115 b.push_hostrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_host().(HostMetarust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#::Ipv6rust-analyzer cargo fluent-uri 0.4.1 imp/HostMeta#Ipv6#(self), |buf| {
116 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(buf, "[{self}]").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
117 });
118 }
119 }
120
121 #[cfg(feature = "net")]
122 impl<'a> AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> for IpAddrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr# {
123 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[IpAddr][`AsHost<'a>`]push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#) {
124 match self {
125 IpAddrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr#::V4rust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr#V4#(addr) => addr.push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[Ipv4Addr][`AsHost<'a>`]push_to().(b),
126 IpAddrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr#::V6rust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr#V6#(addr) => addr.push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[Ipv6Addr][`AsHost<'a>`]push_to().(b),
127 }
128 }
129 }
130
131 impl<'a> AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> for &'a EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#<RegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/RegName#> {
132 #[inline]
133 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[`&'a EStr<RegName>`][`AsHost<'a>`]push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#) {
134 self.castrust-analyzer cargo fluent-uri 0.4.1 pct_enc/impl#[`EStr<E>`]cast().::<IRegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/IRegName#>().push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[`&'a EStr<IRegName>`][`AsHost<'a>`]push_to().(b);
135 }
136 }
137
138 impl<'a> AsHostrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsHost#<'a> for &'a EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#<IRegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/IRegName#> {
139 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[`&'a EStr<IRegName>`][`AsHost<'a>`]push_to().(self, b: &mut BuilderInnerrust-analyzer cargo fluent-uri 0.4.1 build/imp/BuilderInner#) {
140 let meta = parserust-analyzer cargo fluent-uri 0.4.1 parse/::parse_v4_or_reg_namerust-analyzer cargo fluent-uri 0.4.1 parse/parse_v4_or_reg_name().(self.as_strrust-analyzer cargo fluent-uri 0.4.1 pct_enc/impl#[`EStr<E>`]as_str().().as_bytesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]as_bytes().());
141 b.push_hostrust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[BuilderInner]push_host().(meta, |buf| {
142 buf.push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(self.as_strrust-analyzer cargo fluent-uri 0.4.1 pct_enc/impl#[`EStr<E>`]as_str().());
143 });
144 }
145 }
146
147 pub trait WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<E> {}
148
149 #[cfg(feature = "net")]
150 impl<E> WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<E> for Ipv4Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv4Addr# {}
151 #[cfg(feature = "net")]
152 impl<E> WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<E> for Ipv6Addrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/Ipv6Addr# {}
153 #[cfg(feature = "net")]
154 impl<E> WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<E> for IpAddrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core net/ip_addr/IpAddr# {}
155
156 impl WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<RegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/RegName#> for &EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#<RegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/RegName#> {}
157 impl WithEncoderrust-analyzer cargo fluent-uri 0.4.1 build/imp/WithEncoder#<IRegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/IRegName#> for &EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#<IRegNamerust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/IRegName#> {}
158
159 pub trait AsPortrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsPort# {
160 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/AsPort#push_to().(self, buf: &mut Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#);
161 }
162
163 impl AsPortrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsPort# for u16 {
164 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[u16][AsPort]push_to().(self, buf: &mut Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) {
165 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(buf, ":{self}").unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
166 }
167 }
168
169 impl AsPortrust-analyzer cargo fluent-uri 0.4.1 build/imp/AsPort# for &EStrrust-analyzer cargo fluent-uri 0.4.1 pct_enc/EStr#<Portrust-analyzer cargo fluent-uri 0.4.1 pct_enc/encoder/Port#> {
170 fn push_torust-analyzer cargo fluent-uri 0.4.1 build/imp/impl#[`&EStr<Port>`][AsPort]push_to().(self, buf: &mut Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) {
171 buf.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().(':');
172 buf.push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(self.as_strrust-analyzer cargo fluent-uri 0.4.1 pct_enc/impl#[`EStr<E>`]as_str().());
173 }
174 }