Docs.rs
  • string-wrapper-0.2.0
    • string-wrapper 0.2.0
    • Docs.rs crate page
    • MIT / Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • SimonSapin
    • radix
    • Dependencies
      • serde ^0.9
      • serde_derive ^0.9
      • serde_json ^0.9
    • Versions
  • Go to latest version
  • Platform
    • i686-apple-darwin
    • i686-pc-windows-gnu
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-gnu
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crates

  • string_wrapper

Crate string_wrapper [−] [src]

[−] Expand description

provides StringWrapper, most useful for stack-based strings.

Structs

StringWrapper

Like String, but with a fixed capacity and a generic backing bytes storage.

Traits

Buffer

Equivalent to AsMut<[u8]> + AsRef<[u8]> with the additional constraint that implementations must return the same slice from subsequent calls of as_mut and/or as_ref.

OwnedBuffer

The OwnedBuffer trait is in support of StringWrapper::from_str, since we need to be able to allocate new buffers for it.

Results for css

string_wrapper::StringWrapper::cmp 
string_wrapper::StringWrapper::eq 
string_wrapper::StringWrapper::fmt 
string_wrapper::StringWrapper::lenReturn the number of bytes in the string. 
string_wrapper::OwnedBuffer::newCreature a new buffer that can be used to initialize a StringWrapper. 
string_wrapper::StringWrapper::newCreate an empty string from its backing storage. 
string_wrapper::StringWrapper::hash 
string_wrapper::StringWrapper::pushAppend a code point to the string if the extra capacity is sufficient. 

Help

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
⇤
Move up in search results
⇥
Move down in search results
⏎
Go to active search result
+
Collapse/expand 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)