Struct interoptopus::patterns::string::AsciiPointer[][src]

#[repr(transparent)]
pub struct AsciiPointer<'a> { /* fields omitted */ }
Expand description

Represents a *const char on FFI level pointing to an 0x0 terminated ASCII string.

Implementations

Create an AsciiPointer from a &[u8] slice reference.

The parameter ascii_with_nul must contain nul (0x0), but it does not need to contain nul at the end.

Create a pointer from a CStr.

Create a CStr for the pointer.

Attempts to return a Rust str.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.