pub struct Metadata { /* private fields */ }Implementations§
Source§impl Metadata
impl Metadata
pub fn new(entries: Vec<(MetadataValue, MetadataValue)>) -> Rc<Self>
pub fn document(value: impl Into<String>) -> Rc<Self>
pub fn entries(&self) -> &[(MetadataValue, MetadataValue)]
pub fn get(&self, key: &MetadataValue) -> Option<&MetadataValue>
pub fn get_keyword(&self, key: &str) -> Option<&MetadataValue>
pub fn flag(&self, key: &str) -> bool
pub fn doc(&self) -> Option<&str>
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl !RefUnwindSafe for Metadata
impl !Send for Metadata
impl !Sync for Metadata
impl !UnwindSafe for Metadata
impl Freeze for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
Blanket Implementations§
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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