Struct subplot::EmbeddedFiles
source · pub struct EmbeddedFiles { /* private fields */ }
Expand description
A collection of data files embedded in document.
Implementations
sourceimpl EmbeddedFiles
impl EmbeddedFiles
sourcepub fn new(ast: &mut Pandoc) -> EmbeddedFiles
pub fn new(ast: &mut Pandoc) -> EmbeddedFiles
Create new set of data files.
sourcepub fn files(&self) -> &[EmbeddedFile]
pub fn files(&self) -> &[EmbeddedFile]
Return slice of all data files.
sourcepub fn push(&mut self, file: EmbeddedFile)
pub fn push(&mut self, file: EmbeddedFile)
Append a new data file.
Trait Implementations
sourceimpl Clone for EmbeddedFiles
impl Clone for EmbeddedFiles
sourcefn clone(&self) -> EmbeddedFiles
fn clone(&self) -> EmbeddedFiles
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 EmbeddedFiles
impl Debug for EmbeddedFiles
sourceimpl<'de> Deserialize<'de> for EmbeddedFiles
impl<'de> Deserialize<'de> for EmbeddedFiles
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 MutVisitor for EmbeddedFiles
impl MutVisitor for EmbeddedFiles
fn visit_vec_block(&mut self, vec_block: &mut Vec<Block>)
fn visit_block(&mut self, block: &mut Block)
fn visit_attr(
&mut self,
attr: &mut (String, Vec<String, Global>, Vec<(String, String), Global>)
)
fn visit_inline(&mut self, inline: &mut Inline)
fn visit_meta(&mut self, _key: &str, meta: &mut MetaValue)
fn visit_vec_inline(&mut self, vec_inline: &mut Vec<Inline, Global>)
fn walk_meta(&mut self, meta: &mut MetaValue)
fn walk_pandoc(&mut self, pandoc: &mut Pandoc)
fn walk_block(&mut self, block: &mut Block)
fn walk_attr(
&mut self,
_attr: &mut (String, Vec<String, Global>, Vec<(String, String), Global>)
)
fn walk_inline(&mut self, inline: &mut Inline)
fn walk_vec_block(&mut self, vec_block: &mut Vec<Block, Global>)
fn walk_vec_inline(&mut self, vec_inline: &mut Vec<Inline, Global>)
sourceimpl PartialEq<EmbeddedFiles> for EmbeddedFiles
impl PartialEq<EmbeddedFiles> for EmbeddedFiles
sourcefn eq(&self, other: &EmbeddedFiles) -> bool
fn eq(&self, other: &EmbeddedFiles) -> bool
sourceimpl Serialize for EmbeddedFiles
impl Serialize for EmbeddedFiles
impl Eq for EmbeddedFiles
impl StructuralEq for EmbeddedFiles
impl StructuralPartialEq for EmbeddedFiles
Auto Trait Implementations
impl RefUnwindSafe for EmbeddedFiles
impl Send for EmbeddedFiles
impl Sync for EmbeddedFiles
impl Unpin for EmbeddedFiles
impl UnwindSafe for EmbeddedFiles
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.