PrefixString

Structin bodyfastly 0.13.1View source
pub struct PrefixString<'a> { /* private fields */ }

Smart pointer returned by Body::get_prefix_str_mut().

Methods

fn take(self) -> String

Return the prefix as a string without writing it back to the Body from which it came.

Parameters

self: Self

Returns

String

Trait implementations

impl Debug for PrefixString

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Parameters

self: &Self
f: &mut std::fmt::Formatter

Returns

std::fmt::Result

impl Deref for PrefixString

fn deref(&self) -> &Self::Target

Parameters

self: &Self

Returns

&Self::Target

impl DerefMut for PrefixString

deref_mut

View source
fn deref_mut(&mut self) -> &mut Self::Target

Parameters

self: &mut Self

Returns

&mut Self::Target

impl Drop for PrefixString

fn drop(&mut self)

Parameters

self: &mut Self

Auto trait implementations

Blanket implementations