pub struct Template {
pub content: String,
/* private fields */
}Expand description
Template file
Fields§
§content: StringImplementations§
Trait Implementations§
Source§impl PartialEq for Template
impl PartialEq for Template
Source§fn eq(&self, other: &Template) -> bool
fn eq(&self, other: &Template) -> bool
To check for equality, This method will check:
- The file path of both templates.
- The “clean content” of both templates.
Note: Clean Content is a whitespace-removed content of the template, This is helpful in testing where the indentation can mess up the equality check.
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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