pub struct Namespace {
pub name: String,
pub functions: Vec<Function>,
pub structs: Vec<Struct>,
pub classes: Vec<Class>,
pub namespaces: Vec<Namespace>,
}Expand description
Represents a C++ namespace (DECY-201).
Maps to Rust mod block. Nested namespaces become nested modules.
Fields§
§name: StringNamespace name (empty for anonymous namespaces)
functions: Vec<Function>Functions declared in this namespace
structs: Vec<Struct>Structs declared in this namespace
classes: Vec<Class>Classes declared in this namespace
namespaces: Vec<Namespace>Nested namespaces
Implementations§
Trait Implementations§
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Forget for Namespace
impl Freeze for Namespace
impl Move for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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