pub enum NamedProperty {
Basic(String),
Static(String),
Pointer(String),
Index(Value),
}
Expand description
Properties of a Named
struct that may be basic properties, static properties, pointer
properties or index properties.
Variants§
Basic(String)
A basic property, for example, Named.Basic
.
Static(String)
A reference to a static property, which is not supported by the C backend. For example,
Named::Basic
in C++ or Rust.
Pointer(String)
A pointer property, for example, Named->Pointer
.
Index(Value)
An index in a named value, for example, Named[Index]
. It uses a value that is
determined at compile time.
Trait Implementations§
Source§impl Clone for NamedProperty
impl Clone for NamedProperty
Source§fn clone(&self) -> NamedProperty
fn clone(&self) -> NamedProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for NamedProperty
impl PartialEq for NamedProperty
impl StructuralPartialEq for NamedProperty
Auto Trait Implementations§
impl Freeze for NamedProperty
impl RefUnwindSafe for NamedProperty
impl Send for NamedProperty
impl Sync for NamedProperty
impl Unpin for NamedProperty
impl UnwindSafe for NamedProperty
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