pub struct LinkedSnippet {
pub contents: String,
pub includes: BTreeSet<String>,
}
Fields§
§contents: String
§includes: BTreeSet<String>
Implementations§
Source§impl LinkedSnippet
impl LinkedSnippet
pub fn push_contents(&mut self, contents: &str)
pub fn push_item_with_filter(&mut self, item: &Item, filter: Filter<'_, '_>)
pub fn push_include(&mut self, include: String)
pub fn push_includes(&mut self, includes: impl IntoIterator<Item = String>)
pub fn append(&mut self, other: Self)
pub fn format(&mut self, option: &FormatOption) -> bool
Trait Implementations§
Source§impl Clone for LinkedSnippet
impl Clone for LinkedSnippet
Source§fn clone(&self) -> LinkedSnippet
fn clone(&self) -> LinkedSnippet
Returns a copy 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 Debug for LinkedSnippet
impl Debug for LinkedSnippet
Source§impl Default for LinkedSnippet
impl Default for LinkedSnippet
Source§fn default() -> LinkedSnippet
fn default() -> LinkedSnippet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinkedSnippet
impl<'de> Deserialize<'de> for LinkedSnippet
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
Auto Trait Implementations§
impl Freeze for LinkedSnippet
impl RefUnwindSafe for LinkedSnippet
impl Send for LinkedSnippet
impl Sync for LinkedSnippet
impl Unpin for LinkedSnippet
impl UnwindSafe for LinkedSnippet
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