pub struct Attributes(pub VecMap<QualName, StrTendril>);
Tuple Fieldsยง
ยง0: VecMap<QualName, StrTendril>
Implementationsยง
Trait Implementationsยง
Sourceยงimpl Attributes for Attributes
impl Attributes for Attributes
type KeyIter<'a> = Map<Iter<'a, (QualName, Tendril<UTF8>)>, fn(&(QualName, Tendril<UTF8>)) -> &str>
type Value<'a> = &'a str
fn keys(&self) -> Self::KeyIter<'_>
fn value(&self, key: &str) -> Option<Self::Value<'_>>
fn set(&mut self, key: &str, value: &str)
fn take(&mut self, key: &str) -> Option<String>
fn get(&self, tag: FTMLKey) -> Option<Self::Value<'_>>
fn remove(&mut self, tag: FTMLKey) -> Option<String>
Sourceยงfn get_typed<E, T>(
&self,
key: FTMLKey,
f: impl FnOnce(&str) -> Result<T, E>,
) -> Result<T, FTMLError>
fn get_typed<E, T>( &self, key: FTMLKey, f: impl FnOnce(&str) -> Result<T, E>, ) -> Result<T, FTMLError>
Errors Read more
Sourceยงfn get_typed_vec<E, T>(
&self,
key: FTMLKey,
f: impl FnMut(&str) -> Result<T, E>,
) -> Result<Vec<T>, FTMLError>
fn get_typed_vec<E, T>( &self, key: FTMLKey, f: impl FnMut(&str) -> Result<T, E>, ) -> Result<Vec<T>, FTMLError>
Errors Read more
Sourceยงfn take_typed<E, T>(
&mut self,
key: FTMLKey,
f: impl FnOnce(&str) -> Result<T, E>,
) -> Result<T, FTMLError>
fn take_typed<E, T>( &mut self, key: FTMLKey, f: impl FnOnce(&str) -> Result<T, E>, ) -> Result<T, FTMLError>
Errors Read more
Sourceยงfn get_section_level(&self, key: FTMLKey) -> Result<SectionLevel, FTMLError>
fn get_section_level(&self, key: FTMLKey) -> Result<SectionLevel, FTMLError>
Errors Read more
Sourceยงfn take_section_level(
&mut self,
key: FTMLKey,
) -> Result<SectionLevel, FTMLError>
fn take_section_level( &mut self, key: FTMLKey, ) -> Result<SectionLevel, FTMLError>
Errors Read more
Sourceยงfn get_module_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
fn get_module_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn get_new_module_uri<E>(
&self,
key: FTMLKey,
extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
fn get_new_module_uri<E>(
&self,
key: FTMLKey,
extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn take_module_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
fn take_module_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn take_new_module_uri<E>(
&mut self,
key: FTMLKey,
extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
fn take_new_module_uri<E>(
&mut self,
key: FTMLKey,
extractor: &mut E,
) -> Result<ModuleURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn get_symbol_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
fn get_symbol_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn get_new_symbol_uri<E>(
&self,
key: FTMLKey,
extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
fn get_new_symbol_uri<E>(
&self,
key: FTMLKey,
extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn take_symbol_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
fn take_symbol_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn take_new_symbol_uri<E>(
&mut self,
key: FTMLKey,
extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
fn take_new_symbol_uri<E>(
&mut self,
key: FTMLKey,
extractor: &mut E,
) -> Result<SymbolURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn get_document_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<DocumentURI, FTMLError>where
E: FTMLExtractor,
fn get_document_uri<E>(
&self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<DocumentURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
Sourceยงfn take_document_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<DocumentURI, FTMLError>where
E: FTMLExtractor,
fn take_document_uri<E>(
&mut self,
key: FTMLKey,
_extractor: &mut E,
) -> Result<DocumentURI, FTMLError>where
E: FTMLExtractor,
Errors Read more
fn get_id<E>(&self, extractor: &mut E, prefix: Cow<'static, str>) -> Box<str>where
E: FTMLExtractor,
fn get_bool(&self, key: FTMLKey) -> bool
fn take_bool(&mut self, key: FTMLKey) -> bool
Sourceยงimpl Clone for Attributes
impl Clone for Attributes
Sourceยงfn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a duplicate 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 Attributes
impl Debug for Attributes
Sourceยงimpl From<Vec<Attribute>> for Attributes
impl From<Vec<Attribute>> for Attributes
Sourceยงimpl PartialEq for Attributes
impl PartialEq for Attributes
impl Eq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementationsยง
impl Freeze for Attributes
impl !RefUnwindSafe for Attributes
impl !Send for Attributes
impl !Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
ยง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
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
ยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
ยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
ยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more