Docs.rs
basn1-0.1.3
basn1 0.1.3
Permalink
Docs.rs crate page
MIT
/
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
vincenthz
Dependencies
Versions
51.56%
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
Integer
basn1
0.1.3
Integer
Methods
from_slice
to_u8
to_u16
to_u32
to_u64
to_u128
Trait Implementations
AsRef<[u8]>
Debug
Eq
Hash
PartialEq
StructuralPartialEq
Auto Trait Implementations
!Sized
Freeze
RefUnwindSafe
Send
Sync
Unpin
UnwindSafe
Blanket Implementations
Any
Borrow<T>
BorrowMut<T>
In crate basn1
basn1
Struct
Integer
Copy item path
Source
pub struct Integer(
/* private fields */
);
Implementations
§
Source
§
impl
Integer
Source
pub fn
to_u128
(&self) ->
Option
<
u128
>
Source
pub fn
to_u64
(&self) ->
Option
<
u64
>
Source
pub fn
to_u32
(&self) ->
Option
<
u32
>
Source
pub fn
to_u16
(&self) ->
Option
<
u16
>
Source
pub fn
to_u8
(&self) ->
Option
<
u8
>
Source
§
impl
Integer
Source
pub fn
from_slice
(slice: &[
u8
]) ->
Result
<&Self,
()
>
Trait Implementations
§
Source
§
impl
AsRef
<[
u8
]> for
Integer
Source
§
fn
as_ref
(&self) -> &[
u8
]
Converts this type into a shared reference of the (usually inferred) input type.
Source
§
impl
Debug
for
Integer
Source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
Source
§
impl
Hash
for
Integer
Source
§
fn
hash
<__H:
Hasher
>(&self, state:
&mut __H
)
Feeds this value into the given
Hasher
.
Read more
Source
§
impl
PartialEq
for
Integer
Source
§
fn
eq
(&self, other: &
Integer
) ->
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
Eq
for
Integer
Source
§
impl
StructuralPartialEq
for
Integer
Auto Trait Implementations
§
§
impl
Freeze
for
Integer
§
impl
RefUnwindSafe
for
Integer
§
impl
Send
for
Integer
§
impl !
Sized
for
Integer
§
impl
Sync
for
Integer
§
impl
Unpin
for
Integer
§
impl
UnwindSafe
for
Integer
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