Struct sourmash::ffi::utils::SourmashStr[][src]

#[repr(C)]
pub struct SourmashStr { pub data: *mut c_char, pub len: usize, pub owned: bool, }
Expand description

Represents a string.

Fields

data: *mut c_char

Pointer to the UTF-8 encoded string data.

len: usize

The length of the string pointed to by data.

owned: bool

Indicates that the string is owned and must be freed.

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

Casts the value.

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.

Casts the value.

Casts the value.