pub struct ReaperStr(_);
Expand description

A borrowed string owned by REAPER.

reaper-rs functions pass this type to consumer-provided closures.

See ReaperString for further details.

Implementations

Wraps a raw C string with a safe Reaper string wrapper.

Safety

You must ensure that the given pointer refers to a valid UTF-8 encoded C string.

Converts a ReaperStr to an owned ReaperString.

Yields the underlying &CStr.

Converts this value to a Rust string slice.

Panics

This function panics if the string is not properly UTF-8 encoded.

Trait Implementations

Immutably borrows from an owned value. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts the given value to a String. Read more