#[repr(transparent)]
pub struct char_p_raw(_);
Expand description

Same as char_p_ref, but without any lifetime attached whatsoever.

It is only intended to be used as the parameter of a callback that locally borrows it, due to limitations of the [ReprC][ trait@crate::layout::ReprC] design w.r.t. higher-rank trait bounds.

C Layout

Implementations

Safety
  • For the duration of the 'borrow, the pointer must point to the beginning of a valid and immutable null-terminated slice of c_chars.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

The CType having the same layout as Self.

Sanity checks that can be performed on an instance of the CType layout. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.