#[non_exhaustive]pub struct CommentedChildren<T> {
pub comment: Option<String>,
pub children: Vec<T>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.comment: Option<String>§children: Vec<T>Trait Implementations§
Source§impl<T: Clone> Clone for CommentedChildren<T>
impl<T: Clone> Clone for CommentedChildren<T>
Source§fn clone(&self) -> CommentedChildren<T>
fn clone(&self) -> CommentedChildren<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for CommentedChildren<T>
impl<T: Debug> Debug for CommentedChildren<T>
Source§impl<T: Default> Default for CommentedChildren<T>
impl<T: Default> Default for CommentedChildren<T>
Source§fn default() -> CommentedChildren<T>
fn default() -> CommentedChildren<T>
Returns the “default value” for a type. Read more
Source§impl<T: PartialEq> PartialEq for CommentedChildren<T>
impl<T: PartialEq> PartialEq for CommentedChildren<T>
impl<T: Eq> Eq for CommentedChildren<T>
impl<T> StructuralPartialEq for CommentedChildren<T>
Auto Trait Implementations§
impl<T> Freeze for CommentedChildren<T>
impl<T> RefUnwindSafe for CommentedChildren<T>where
T: RefUnwindSafe,
impl<T> Send for CommentedChildren<T>where
T: Send,
impl<T> Sync for CommentedChildren<T>where
T: Sync,
impl<T> Unpin for CommentedChildren<T>where
T: Unpin,
impl<T> UnwindSafe for CommentedChildren<T>where
T: UnwindSafe,
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