pub(crate) struct AttrQuery<'attr> {
attrs: Attrs<'attr>,
key: Symbol,
}Fields§
§attrs: Attrs<'attr>§key: SymbolImplementations§
Source§impl<'attr> AttrQuery<'attr>
impl<'attr> AttrQuery<'attr>
pub(crate) fn tt_values(self) -> impl Iterator<Item = &'attr TopSubtree>
pub(crate) fn string_value_with_span(self) -> Option<(&'attr str, Span)>
pub(crate) fn string_value_unescape(self) -> Option<Cow<'attr, str>>
pub(crate) fn exists(self) -> bool
pub(crate) fn attrs(self) -> impl Iterator<Item = &'attr Attr> + Clone
Trait Implementations§
Auto Trait Implementations§
impl<'attr> Freeze for AttrQuery<'attr>
impl<'attr> RefUnwindSafe for AttrQuery<'attr>
impl<'attr> Send for AttrQuery<'attr>
impl<'attr> Sync for AttrQuery<'attr>
impl<'attr> Unpin for AttrQuery<'attr>
impl<'attr> UnsafeUnpin for AttrQuery<'attr>
impl<'attr> UnwindSafe for AttrQuery<'attr>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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