☰
Encode
Required Methods
encode
Implementations on Foreign Types
&[T]
&str
()
(K, V)
Cow<'a, str>
String
Vec<T>
f64
u32
u64
Implementors
In prometheus_client::encoding::text
?
Trait
prometheus_client
::
encoding
::
text
::
Encode
source
·
[
−
]
pub trait Encode { fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>; }
Required Methods
§
source
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
Implementations on Foreign Types
§
source
§
impl
Encode
for
f64
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl
Encode
for
u64
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl
Encode
for
u32
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl<T:
Encode
>
Encode
for &
[T]
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl<T:
Encode
>
Encode
for
Vec
<T>
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl<K:
Encode
, V:
Encode
>
Encode
for
(K, V)
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl
Encode
for &
str
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl
Encode
for
String
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl<'a>
Encode
for
Cow
<'a,
str
>
source
§
fn
encode
(&self, writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
source
§
impl
Encode
for
()
source
§
fn
encode
(&self, _writer: &mut dyn
Write
) ->
Result
<
()
,
Error
>
Implementors
§
source
§
impl
Encode
for
MetricType
source
§
impl
Encode
for
Unit