Struct PathChanges

Source
pub struct PathChanges<'a> {
    pub header: Box<str>,
    pub path: &'a mut Vec<Box<str>>,
    /* private fields */
}
Expand description

Represents the changes to be made to a path.

This is generated when a header is found. It’s still possible to access the previous path of headers before applying the changes.

Fields§

§header: Box<str>

The header name that will be added.

§path: &'a mut Vec<Box<str>>

The path to which changes will be applied.

Implementations§

Source§

impl PathChanges<'_>

Source

pub fn apply(self)

Applies the changes to the path.

Auto Trait Implementations§

§

impl<'a> Freeze for PathChanges<'a>

§

impl<'a> RefUnwindSafe for PathChanges<'a>

§

impl<'a> Send for PathChanges<'a>

§

impl<'a> Sync for PathChanges<'a>

§

impl<'a> Unpin for PathChanges<'a>

§

impl<'a> !UnwindSafe for PathChanges<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.