pub struct Fragment {
pub nodes: Vec<View, Global>,
/* private fields */
}
Expand description
Represents a group of views
.
Fields§
§nodes: Vec<View, Global>
The nodes contained in the fragment.
Implementations§
source§impl Fragment
impl Fragment
sourcepub fn new_with_id(id: HydrationKey, nodes: Vec<View, Global>) -> Fragment
pub fn new_with_id(id: HydrationKey, nodes: Vec<View, Global>) -> Fragment
sourcepub fn as_children(&self) -> &[View]
pub fn as_children(&self) -> &[View]
Gives access to the View children contained within the fragment.
sourcepub fn id(&self) -> &HydrationKey
pub fn id(&self) -> &HydrationKey
Returns the fragment’s hydration ID.
Trait Implementations§
source§impl FromIterator<View> for Fragment
impl FromIterator<View> for Fragment
Auto Trait Implementations§
impl !RefUnwindSafe for Fragment
impl !Send for Fragment
impl !Sync for Fragment
impl Unpin for Fragment
impl !UnwindSafe for Fragment
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