pub struct ViewDetachedBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ViewDetachedBuilder<'a, Empty>
impl<'a> ViewDetachedBuilder<'a, Empty>
Source§impl<'a, S> ViewDetachedBuilder<'a, S>
impl<'a, S> ViewDetachedBuilder<'a, S>
Sourcepub fn detached(
self,
value: impl Into<bool>,
) -> ViewDetachedBuilder<'a, SetDetached<S>>
pub fn detached( self, value: impl Into<bool>, ) -> ViewDetachedBuilder<'a, SetDetached<S>>
Set the detached field (required)
Source§impl<'a, S> ViewDetachedBuilder<'a, S>
impl<'a, S> ViewDetachedBuilder<'a, S>
Source§impl<'a, S> ViewDetachedBuilder<'a, S>
impl<'a, S> ViewDetachedBuilder<'a, S>
Sourcepub fn build(self) -> ViewDetached<'a>
pub fn build(self) -> ViewDetached<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ViewDetached<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ViewDetached<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for ViewDetachedBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ViewDetachedBuilder<'a, S>
impl<'a, S> Send for ViewDetachedBuilder<'a, S>
impl<'a, S> Sync for ViewDetachedBuilder<'a, S>
impl<'a, S> Unpin for ViewDetachedBuilder<'a, S>
impl<'a, S> UnsafeUnpin for ViewDetachedBuilder<'a, S>
impl<'a, S> UnwindSafe for ViewDetachedBuilder<'a, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more