Struct codesnip_core::LinkedSnippet
source · [−]Fields
contents: String
includes: BTreeSet<String>
Implementations
sourceimpl 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
sourceimpl Clone for LinkedSnippet
impl Clone for LinkedSnippet
sourcefn clone(&self) -> LinkedSnippet
fn clone(&self) -> LinkedSnippet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LinkedSnippet
impl Debug for LinkedSnippet
sourceimpl Default for LinkedSnippet
impl Default for LinkedSnippet
sourcefn default() -> LinkedSnippet
fn default() -> LinkedSnippet
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LinkedSnippet
impl<'de> Deserialize<'de> for LinkedSnippet
sourcefn 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
sourceimpl Serialize for LinkedSnippet
impl Serialize for LinkedSnippet
Auto Trait Implementations
impl RefUnwindSafe for LinkedSnippet
impl Send for LinkedSnippet
impl Sync for LinkedSnippet
impl Unpin for LinkedSnippet
impl UnwindSafe for LinkedSnippet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more