Docs.rs
otter-1.2.1
otter 1.2.1
Permalink
Docs.rs crate page
AGPL-3.0-or-later
25 May 2026
Links
Homepage
Repository
crates.io
Source
Owners
ijackson
fanf2
Dependencies
ambassador ^0.3.1
normal
async-condvar-fair ^0.2
normal
backtrace ^0.3
normal
base64 ^0.13
normal
boolinator ^2
normal
cast_trait_object ^0.1
normal
const-default ^1
normal
crossbeam-utils ^0.8
normal
delegate ^0.7
normal
downcast-rs ^1
normal
either ^1
normal
enum-map ^2
normal
enum_dispatch ^0.3.5
normal
env_logger ^0.9
normal
fehler ^1
normal
glob ^0.3
normal
humantime-serde ^1
normal
image ^0.24
normal
index_vec ^0.1.1
normal
inventory ^0.2
normal
lazy-init ^0.5
normal
lazy-regex ^2
normal
libc ^0.2
normal
num ^0.4
normal
num-traits ^0.2
normal
once_cell ^1
normal
openssh-keys ^0.5
normal
ordered-float ^3
normal
otter-support =1.2.1
normal
percent-encoding ^2
normal
regex ^1
normal
serde ^1
normal
serde_with ^1
normal
structopt ^0.3
normal
strum ^0.24
normal
subtle ^2.4
normal
tempfile ^3
normal
tera ^1.10
normal
thiserror ^1
normal
typetag ^0.1.6
normal
uds ^0.2
normal
unicase ^2
normal
url ^2
normal
vecdeque-stableix ^1
normal
xmlparser ^0.13
normal
zip ^0.6
normal
bundle-sources ^0.0.1
build
usvg ^0.23
build
Versions
6.82%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
HtmlStr
otter
1.2.1
HtmlStr
Associated Functions
from_html_str
Methods
as_html_str
len
Trait Implementations
AsRef<HtmlStr>
AsRef<HtmlStr>
AsRef<HtmlStr>
Borrow<HtmlStr>
Borrow<HtmlStr>
Debug
Default
Eq
From<&HtmlStr>
From<HtmlLit>
Hash
HtmlFormat<'e>
Ord
PartialEq
PartialOrd
StructuralPartialEq
ToOwned
Auto Trait Implementations
!Sized
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnsafeUnpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
In otter::
prelude
otter
::
prelude
Struct
HtmlStr
Copy item path
Source
pub struct HtmlStr(
/* private fields */
);
Implementations
§
Source
§
impl
HtmlStr
Source
pub fn
from_html_str
<'s>(s: &'s
str
) -> &'s
HtmlStr
Source
pub fn
len
(&self) ->
usize
Source
pub fn
as_html_str
(&self) -> &
str
Trait Implementations
§
Source
§
impl
AsRef
<
HtmlStr
> for
Html
Source
§
fn
as_ref
(&self) -> &
HtmlStr
Converts this type into a shared reference of the (usually inferred) input type.
Source
§
impl
AsRef
<
HtmlStr
> for
HtmlLit
Source
§
fn
as_ref
(&self) -> &
HtmlStr
Converts this type into a shared reference of the (usually inferred) input type.
Source
§
impl
AsRef
<
HtmlStr
> for
HtmlStr
Source
§
fn
as_ref
(&self) -> &
HtmlStr
Converts this type into a shared reference of the (usually inferred) input type.
Source
§
impl
Borrow
<
HtmlStr
> for
Html
Source
§
fn
borrow
<'b>(&'b self) -> &'b
HtmlStr
Immutably borrows from an owned value.
Read more
Source
§
impl
Borrow
<
HtmlStr
> for
HtmlLit
Source
§
fn
borrow
<'b>(&'b self) -> &'static
HtmlStr
Immutably borrows from an owned value.
Read more
Source
§
impl
Debug
for
HtmlStr
Source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
<
()
,
Error
>
Formats the value using the given formatter.
Read more
Source
§
impl
Default
for &'static
HtmlStr
Source
§
fn
default
() -> &'static
HtmlStr
Returns the “default value” for a type.
Read more
Source
§
impl
From
<&
HtmlStr
> for
Html
Source
§
fn
from
(l: &
HtmlStr
) ->
Html
Converts to this type from the input type.
Source
§
impl
From
<
HtmlLit
> for &'static
HtmlStr
Source
§
fn
from
(l:
HtmlLit
) -> &'static
HtmlStr
Converts to this type from the input type.
Source
§
impl
Hash
for
HtmlStr
Source
§
fn
hash
<__H>(&self, state:
&mut __H
)
where __H:
Hasher
,
Feeds this value into the given
Hasher
.
Read more
Source
§
impl<'e>
HtmlFormat
<'e> for
HtmlStr
Source
§
type
Encoded
= &'e
str
Source
§
fn
html_format
<'f>(&'f self) -> <
HtmlStr
as
HtmlFormat
<'e>>::
Encoded
where 'f: 'e,
Source
§
impl
Ord
for
HtmlStr
Source
§
fn
cmp
(&self, other: &
HtmlStr
) ->
Ordering
This method returns an
Ordering
between
self
and
other
.
Read more
Source
§
impl
PartialEq
for
HtmlStr
Source
§
fn
eq
(&self, other: &
HtmlStr
) ->
bool
Tests for
self
and
other
values to be equal, and is used by
==
.
1.0.0 (const:
unstable
)
·
Source
§
fn
ne
(&self, other:
&Rhs
) ->
bool
Tests for
!=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source
§
impl
PartialOrd
for
HtmlStr
Source
§
fn
partial_cmp
(&self, other: &
HtmlStr
) ->
Option
<
Ordering
>
This method returns an ordering between
self
and
other
values if one exists.
Read more
1.0.0 (const:
unstable
)
·
Source
§
fn
lt
(&self, other:
&Rhs
) ->
bool
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
1.0.0 (const:
unstable
)
·
Source
§
fn
le
(&self, other:
&Rhs
) ->
bool
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
1.0.0 (const:
unstable
)
·
Source
§
fn
gt
(&self, other:
&Rhs
) ->
bool
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
1.0.0 (const:
unstable
)
·
Source
§
fn
ge
(&self, other:
&Rhs
) ->
bool
Tests greater than or equal to (for
self
and
other
) and is used by the
>=
operator.
Read more
Source
§
impl
ToOwned
for
HtmlStr
Source
§
type
Owned
=
Html
The resulting type after obtaining ownership.
Source
§
fn
to_owned
(&self) ->
Html
Creates owned data from borrowed data, usually by cloning.
Read more
1.63.0
·
Source
§
fn
clone_into
(&self, target: &mut Self::
Owned
)
Uses borrowed data to replace owned data, usually by cloning.
Read more
Source
§
impl
Eq
for
HtmlStr
Source
§
impl
StructuralPartialEq
for
HtmlStr
Auto Trait Implementations
§
§
impl
Freeze
for
HtmlStr
§
impl
RefUnwindSafe
for
HtmlStr
§
impl
Send
for
HtmlStr
§
impl !
Sized
for
HtmlStr
§
impl
Sync
for
HtmlStr
§
impl
Unpin
for
HtmlStr
§
impl
UnsafeUnpin
for
HtmlStr
§
impl
UnwindSafe
for
HtmlStr
Blanket Implementations
§
Source
§
impl<T>
Any
for T
where T: 'static + ?
Sized
,
Source
§
fn
type_id
(&self) ->
TypeId
Gets the
TypeId
of
self
.
Read more
Source
§
impl<T>
Borrow
<T> for T
where T: ?
Sized
,
Source
§
fn
borrow
(&self) ->
&T
Immutably borrows from an owned value.
Read more
Source
§
impl<T>
BorrowMut
<T> for T
where T: ?
Sized
,
Source
§
fn
borrow_mut
(&mut self) ->
&mut T
Mutably borrows from an owned value.
Read more