Struct value_bag::fill::Slot [−][src]
A value slot to fill using the Fill
trait.
Implementations
impl<'s, 'f> Slot<'s, 'f>
[src]
pub fn fill_any<T>(&mut self, value: T) -> Result<(), Error> where
T: Into<ValueBag<'f>>,
[src]
T: Into<ValueBag<'f>>,
Fill the slot with a value.
The given value doesn’t need to satisfy any particular lifetime constraints.
Panics
Calling more than a single fill
method on this slot will panic.
impl<'s, 'f> Slot<'s, 'f>
[src]
pub fn fill_debug<T>(&mut self, value: T) -> Result<(), Error> where
T: Debug,
[src]
T: Debug,
Fill the slot with a debuggable value.
The given value doesn’t need to satisfy any particular lifetime constraints.
Panics
Calling more than a single fill
method on this slot will panic.
pub fn fill_display<T>(&mut self, value: T) -> Result<(), Error> where
T: Display,
[src]
T: Display,
Fill the slot with a displayable value.
The given value doesn’t need to satisfy any particular lifetime constraints.
Panics
Calling more than a single fill
method on this slot will panic.
Trait Implementations
Auto Trait Implementations
impl<'s, 'f> !Send for Slot<'s, 'f>
impl<'s, 'f> !Sync for Slot<'s, 'f>
impl<'s, 'f> Unpin for Slot<'s, 'f> where
'f: 's,
'f: 's,
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,
pub 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, 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.
pub 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>,