Docs.rs
otter-base-1.2.1
otter-base 1.2.1
Permalink
Docs.rs crate page
AGPL-3.0-or-later
Links
Homepage
Repository
crates.io
Source
Owners
ijackson
fanf2
Dependencies
arrayvec ^0.7
normal
derive_more ^0.99
normal
extend ^1
normal
fehler ^1
normal
htmlescape ^0.3
normal
if_chain ^1
normal
itertools ^0.10
normal
num-derive ^0.3
normal
num-traits ^0.2
normal
serde ^1
normal
serde_json ^1
normal
serde_with ^1
normal
thiserror ^1
normal
void ^1
normal
Versions
4.14%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
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
HtmlStr
otter_
base
1.2.1
HtmlStr
Methods
as_html_str
from_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
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
In otter_
base::
html
otter_base
::
html
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 Self
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
Formats the value using the given formatter.
Read more
Source
§
impl
Default
for &'static
HtmlStr
Source
§
fn
default
() -> Self
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:
Hasher
>(&self, state:
&mut __H
)
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: 'e>(&'f self) -> Self::
Encoded
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
·
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
·
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
·
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
·
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
·
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
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