Skip to main content

Retained

Struct Retained 

Source
pub struct Retained<N, D, G> { /* private fields */ }
Expand description

Original retained material and the property role which actually contains it.

Implementations§

Source§

impl<N: Copy, D: Copy, G: Copy> Retained<N, D, G>

Source

pub fn placement(&self) -> Placement<N>

Actual original source placement.

Source

pub fn source(&self) -> &Source<N, D, G>

Retained original XML enclosure and decoded source, without another copy.

Auto Trait Implementations§

§

impl<N, D, G> !Freeze for Retained<N, D, G>

§

impl<N, D, G> !RefUnwindSafe for Retained<N, D, G>

§

impl<N, D, G> !Sync for Retained<N, D, G>

§

impl<N, D, G> Forget for Retained<N, D, G>

§

impl<N, D, G> Send for Retained<N, D, G>
where Placement<N>: Send, Source<N, D, G>: Send,

§

impl<N, D, G> Unpin for Retained<N, D, G>
where Placement<N>: Unpin, Source<N, D, G>: Unpin,

§

impl<N, D, G> UnsafeUnpin for Retained<N, D, G>
where Placement<N>: UnsafeUnpin, Source<N, D, G>: UnsafeUnpin,

§

impl<N, D, G> UnwindSafe for Retained<N, D, G>
where Placement<N>: UnwindSafe, Source<N, D, G>: UnwindSafe,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.