[−][src]Enum flize::CowShield
Variants
Owned(Shield<'collector>)
Borrowed(&'shield Shield<'collector>)
Implementations
impl<'collector, 'shield> CowShield<'collector, 'shield>
[src]
pub fn new_owned(shield: Shield<'collector>) -> Self
[src]
pub fn new_borrowed(shield: &'shield Shield<'collector>) -> Self
[src]
pub fn into_owned(self) -> Shield<'collector>
[src]
pub fn get(&self) -> &Shield<'collector>
[src]
Trait Implementations
Auto Trait Implementations
impl<'collector, 'shield> RefUnwindSafe for CowShield<'collector, 'shield>
impl<'collector, 'shield> !Send for CowShield<'collector, 'shield>
impl<'collector, 'shield> !Sync for CowShield<'collector, 'shield>
impl<'collector, 'shield> Unpin for CowShield<'collector, 'shield> where
'collector: 'shield,
'collector: 'shield,
impl<'collector, 'shield> UnwindSafe for CowShield<'collector, 'shield>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,