[−][src]Struct parsoid::TransclusionTemplate
Representation of the data-mw
part of mw:Transclusion
.
Implementations
impl TransclusionTemplate
[src]
pub fn name(&self) -> String
[src]
Get the name of the template as it appears in wikitext
pub fn normalized_name(&self) -> String
[src]
Get the normalized name of the template, e.g. ./Template:Foo
or
the parser function, e.g. ifeq
.
pub fn get_params(&self) -> BTreeMap<String, String>
[src]
Get a map of all parameters, named and unnamed
pub fn get_param(&self, name: &str) -> Option<String>
[src]
Get the value of a specific parameter if it exists
pub fn get_param_in_wikitext(&self, name: &str) -> Option<String>
[src]
Get the parameter as it appears in the wikitext. For example
given {{1x|param<!--comment-->name=value}}
looking up paramname
would return Some("param<!--comment->name")
.
pub fn is_template(&self) -> bool
[src]
Whether it's a template (as opposed to a parser function)
pub fn is_parser_function(&self) -> bool
[src]
Whether it's a parser function (as opposed to a template)
Trait Implementations
impl Clone for TransclusionTemplate
[src]
fn clone(&self) -> TransclusionTemplate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransclusionTemplate
[src]
impl<'de> Deserialize<'de> for TransclusionTemplate
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TransclusionTemplate
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransclusionTemplate
impl Send for TransclusionTemplate
impl Sync for TransclusionTemplate
impl Unpin for TransclusionTemplate
impl UnwindSafe for TransclusionTemplate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,