pub struct ConstNode {
pub node_id: NodeId,
pub name: String,
pub module: Id<ModuleNode>,
pub scope: Option<String>,
pub type_: Ref<TypeNode>,
pub expr: Id<ConstExprNode>,
pub facets: Facets,
}Expand description
A named constant. Spec §3.5.
Fields§
§node_id: NodeIdStable identity.
name: StringSimple name.
module: Id<ModuleNode>Enclosing module.
scope: Option<String>The interface or value type this is declared in, when it is not
declared directly in a module (OMG IDL 4.2 §7.4.3.4: an interface
body holds type, constant and exception declarations). Its name is
a segment of the scoped name and of the repository id:
CosNaming::NamingContext::NotFound.
type_: Ref<TypeNode>Declared type.
expr: Id<ConstExprNode>The defining expression, retained as a tree.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
impl Eq for ConstNode
impl StructuralPartialEq for ConstNode
Auto Trait Implementations§
impl Freeze for ConstNode
impl RefUnwindSafe for ConstNode
impl Send for ConstNode
impl Sync for ConstNode
impl Unpin for ConstNode
impl UnsafeUnpin for ConstNode
impl UnwindSafe for ConstNode
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