pub struct Fragment {
pub children: Vec<Node>,
}
Expand description
A fragment.
<>
I'm in a fragment!
</>
Fields§
§children: Vec<Node>
The children of the fragment.
<>
<!-- I'm a child! -->
<child>I'm another child!</child>
</>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fragment
impl<'de> Deserialize<'de> for Fragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<I, N> From<I> for Fragment
impl<I, N> From<I> for Fragment
Source§fn from(iter: I) -> Self
fn from(iter: I) -> Self
Create a new fragment from any iterator of anything that
can be converted into a crate::Node
.
Source§impl<N> FromIterator<N> for Fragment
impl<N> FromIterator<N> for Fragment
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = N>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = N>,
Create a new fragment from an iterator of anything that
can be converted into a crate::Node
.
impl Eq for Fragment
impl StructuralPartialEq for Fragment
Auto Trait Implementations§
impl Freeze for Fragment
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