Struct sta::pstring::PString [] [src]

pub struct PString {
    pub compression: bool,
    // some fields omitted
}

The PointString, a string variant comprised of a Vec which provides easy access and manipulation of individual bytes with support for in memory compression of strings.

Fields

Methods

impl PString
[src]

[src]

Create a new, empty PString.

[src]

Create a new PString with a Vec of bytes.

[src]

Set the bytes of an existing PString.

[src]

Set a existing PString to a str.

[src]

Set a existing PString to a str.

[src]

Create a PString from a str pointer.

[src]

Create a PString from a String.

[src]

Get the individual bytes that make up a PString.

[src]

Get the individual raw bytes that make up a PString.

[src]

Get a Vec of all chars in the string.

[src]

Enable compression.

[src]

Disable compression.

[src]

Compress a codepoints byte struct.

[src]

Decompress a codepoints byte struct

[src]

Autocompress data if enabled.

Trait Implementations

impl Debug for PString
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for PString
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for PString
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PString

impl Sync for PString