Struct ftml::tree::attribute::AttributeMap
source · pub struct AttributeMap<'t> { /* private fields */ }Implementations§
source§impl<'t> AttributeMap<'t>
impl<'t> AttributeMap<'t>
pub fn new() -> Self
pub fn from_arguments( arguments: &HashMap<UniCase<&'t str>, Cow<'t, str>> ) -> Self
pub fn insert(&mut self, attribute: &'t str, value: Cow<'t, str>) -> bool
pub fn remove(&mut self, attribute: &str) -> Option<Cow<'t, str>>
pub fn get(&self) -> &BTreeMap<Cow<'t, str>, Cow<'t, str>>
pub fn isolate_id(&mut self, settings: &WikitextSettings)
pub fn to_owned(&self) -> AttributeMap<'static>
Trait Implementations§
source§impl<'t> Clone for AttributeMap<'t>
impl<'t> Clone for AttributeMap<'t>
source§fn clone(&self) -> AttributeMap<'t>
fn clone(&self) -> AttributeMap<'t>
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<'t> Debug for AttributeMap<'t>
impl<'t> Debug for AttributeMap<'t>
source§impl<'t> Default for AttributeMap<'t>
impl<'t> Default for AttributeMap<'t>
source§fn default() -> AttributeMap<'t>
fn default() -> AttributeMap<'t>
Returns the “default value” for a type. Read more
source§impl<'de, 't> Deserialize<'de> for AttributeMap<'t>
impl<'de, 't> Deserialize<'de> for AttributeMap<'t>
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
source§impl<'t> PartialEq<AttributeMap<'t>> for AttributeMap<'t>
impl<'t> PartialEq<AttributeMap<'t>> for AttributeMap<'t>
source§fn eq(&self, other: &AttributeMap<'t>) -> bool
fn eq(&self, other: &AttributeMap<'t>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'t> Serialize for AttributeMap<'t>
impl<'t> Serialize for AttributeMap<'t>
impl<'t> Eq for AttributeMap<'t>
impl<'t> StructuralEq for AttributeMap<'t>
impl<'t> StructuralPartialEq for AttributeMap<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for AttributeMap<'t>
impl<'t> Send for AttributeMap<'t>
impl<'t> Sync for AttributeMap<'t>
impl<'t> Unpin for AttributeMap<'t>
impl<'t> UnwindSafe for AttributeMap<'t>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer