#[repr(C)]pub enum RuntimeNamespace {
Global,
Local {
site: Option<NonZeroU32>,
},
Operation,
Type,
}Variants§
Global
Used for things that participate in all namespaces. These are manifests, blocks, …
Local
Used for things that participate in no namespaces except the local definition. These are fields, enum variants, …
Fields
§
site: Option<NonZeroU32>Operation
Used for things that define operations or things you can do with a driver. These are registers, commands, buffers, …
Type
Used for things that define a type. These are devices, fieldsets, enums, …
Implementations§
Source§impl RuntimeNamespace
impl RuntimeNamespace
pub fn concrete_namespaces(&self) -> Vec<RuntimeNamespace>
Trait Implementations§
Source§impl Clone for RuntimeNamespace
impl Clone for RuntimeNamespace
Source§fn clone(&self) -> RuntimeNamespace
fn clone(&self) -> RuntimeNamespace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeNamespace
Source§impl Debug for RuntimeNamespace
impl Debug for RuntimeNamespace
Source§impl Display for RuntimeNamespace
impl Display for RuntimeNamespace
impl Eq for RuntimeNamespace
Source§impl Hash for RuntimeNamespace
impl Hash for RuntimeNamespace
Source§impl Namespace for RuntimeNamespace
impl Namespace for RuntimeNamespace
fn runtime_value(&self) -> RuntimeNamespace
Source§impl PartialEq for RuntimeNamespace
impl PartialEq for RuntimeNamespace
impl StructuralPartialEq for RuntimeNamespace
Auto Trait Implementations§
impl Freeze for RuntimeNamespace
impl RefUnwindSafe for RuntimeNamespace
impl Send for RuntimeNamespace
impl Sync for RuntimeNamespace
impl Unpin for RuntimeNamespace
impl UnsafeUnpin for RuntimeNamespace
impl UnwindSafe for RuntimeNamespace
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§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> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T> SpanExt for T
impl<T> SpanExt for T
fn with_span(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Source§fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>where
Self: Sized,
Same as
Self::with_span, but can avoid name collisionsfn with_dummy_span(self) -> Spanned<Self>where
Self: Sized,
fn into_with_dummy_span<T>(self) -> Spanned<T>where
Self: Into<T>,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.