pub struct InNamespace<'a, T>(pub T, pub &'a str);Expand description
Something that lives in a namespace like a tag or attribute
Tuple Fields§
§0: T§1: &'a strImplementations§
Source§impl<'a, 'b> InNamespace<'a, Attribute>
impl<'a, 'b> InNamespace<'a, Attribute>
pub const fn any_attr_const(self) -> AnyAttribute<'a, 'b>
Source§impl<'a, 'b> InNamespace<'a, &'b str>
impl<'a, 'b> InNamespace<'a, &'b str>
pub const fn any_attr_const(self) -> AnyAttribute<'a, 'b>
Source§impl<'a, 'b> InNamespace<'a, Element>
impl<'a, 'b> InNamespace<'a, Element>
Sourcepub const fn any_element_const(self) -> AnyElement<'a, 'b>
pub const fn any_element_const(self) -> AnyElement<'a, 'b>
Turn into an AnyElement in a const context
Source§impl<'a, 'b> InNamespace<'a, &'b str>
impl<'a, 'b> InNamespace<'a, &'b str>
pub const fn any_element_const(self) -> AnyElement<'a, 'b>
Trait Implementations§
Source§impl<'a, 'b> From<InNamespace<'a, &'b str>> for AnyAttribute<'a, 'b>
impl<'a, 'b> From<InNamespace<'a, &'b str>> for AnyAttribute<'a, 'b>
Source§fn from(a: InNamespace<'a, &'b str>) -> Self
fn from(a: InNamespace<'a, &'b str>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b> From<InNamespace<'a, &'b str>> for AnyElement<'a, 'b>
impl<'a, 'b> From<InNamespace<'a, &'b str>> for AnyElement<'a, 'b>
Source§fn from(e: InNamespace<'a, &'b str>) -> Self
fn from(e: InNamespace<'a, &'b str>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b> From<InNamespace<'a, Attribute>> for AnyAttribute<'a, 'b>
impl<'a, 'b> From<InNamespace<'a, Attribute>> for AnyAttribute<'a, 'b>
Source§fn from(a: InNamespace<'a, Attribute>) -> Self
fn from(a: InNamespace<'a, Attribute>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b> From<InNamespace<'a, Element>> for AnyElement<'a, 'b>
impl<'a, 'b> From<InNamespace<'a, Element>> for AnyElement<'a, 'b>
Source§fn from(e: InNamespace<'a, Element>) -> Self
fn from(e: InNamespace<'a, Element>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b> IntoAttribue<'a, 'b> for InNamespace<'a, &'b str>
impl<'a, 'b> IntoAttribue<'a, 'b> for InNamespace<'a, &'b str>
Source§fn encode_u8_discriminant(&self, v: &mut Batch)
fn encode_u8_discriminant(&self, v: &mut Batch)
Encode the attribute into the message channel with a u8 desciminant instead of bit packed bools
Source§const SINGLE_BYTE: bool = false
const SINGLE_BYTE: bool = false
If the attribute can be encoded in a single byte
Source§impl<'a, 'b> IntoAttribue<'a, 'b> for InNamespace<'a, Attribute>
impl<'a, 'b> IntoAttribue<'a, 'b> for InNamespace<'a, Attribute>
Source§fn encode_u8_discriminant(&self, v: &mut Batch)
fn encode_u8_discriminant(&self, v: &mut Batch)
Encode the attribute into the message channel with a u8 desciminant instead of bit packed bools
Source§const SINGLE_BYTE: bool = false
const SINGLE_BYTE: bool = false
If the attribute can be encoded in a single byte
Source§impl<'a, 'b> IntoElement<'a, 'b> for InNamespace<'a, &'b str>
impl<'a, 'b> IntoElement<'a, 'b> for InNamespace<'a, &'b str>
Source§const SINGLE_BYTE: bool = false
const SINGLE_BYTE: bool = false
If the element name can be encoded in a single byte
Source§impl<'a, 'b> IntoElement<'a, 'b> for InNamespace<'a, Element>
impl<'a, 'b> IntoElement<'a, 'b> for InNamespace<'a, Element>
Source§const SINGLE_BYTE: bool = false
const SINGLE_BYTE: bool = false
If the element name can be encoded in a single byte
Auto Trait Implementations§
impl<'a, T> Freeze for InNamespace<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for InNamespace<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for InNamespace<'a, T>where
T: Send,
impl<'a, T> Sync for InNamespace<'a, T>where
T: Sync,
impl<'a, T> Unpin for InNamespace<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for InNamespace<'a, T>where
T: UnwindSafe,
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