# memory_units - Rust
API documentation for the Rust `memory_units` crate.
Keywords: rust, rustlang, rust-lang, memory_units

# [−] [src] Crate memory_units

Crate for safe conversion between units of memory.

## Re-exports

`pub use target::*;`

## Modules

target | Sizes and units for the current compilation target.
wasm32 | WebAssembly-specific sizes and units.

## Structs

Bytes | Memory size specified in bytes.

## Traits

ByteSize | A trait defining the size, in bytes, of one unit of `Self`.
RoundUpTo | A trait defining round up conversion between various memory units.

## Functions

size_of | Returns the size of a type in `Bytes`.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)