Crate in_situ [−] [src]
In Situ Endian-independent Bytes Access
Contents
Usage
This crate is on crates.io and can be
used by adding in-situ
to the dependencies in your project's
Cargo.toml
:
[dependencies]
in-situ = "0.1"
# Optionally enable `i128_type` support on nightly Rust.
#[dependencies.in-situ]
#features = ["i128"]
and this to your crate root:
// Optionally enable `i128_type` support on nightly Rust. // Required if the `i128` feature is enabled in your `Cargo.toml`. //#![feature(i128_type)] extern crate in_situ;
Enums
Order |
Type describing the underlying byte order. |
Traits
InSitu |
Provides endian-independent immutable bytes access, thus requires methods
to be implemented detecting or hardcoding the word size and endianness. This
trait requires the |
InSituMut |
Provides endian-independent mutable bytes access, thus requires |
Raw |
Abstracts immutable as well as mutable generic bytes view types like |
RawMut |
Abstracts mutable generic bytes view types like |
Functions
aligned |
Calculates |
padding |
Calculates padding of |