pub struct Document { /* private fields */ }Implementations§
Source§impl Document
impl Document
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn from_element(element: FormatElement) -> Self
pub fn from_elements(elements: Vec<FormatElement>) -> Self
pub fn push(&mut self, element: FormatElement)
pub fn extend(&mut self, document: Document)
pub fn as_slice(&self) -> &[FormatElement]
pub fn into_vec(self) -> Vec<FormatElement>
pub fn is_empty(&self) -> bool
Trait Implementations§
impl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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