pub struct ShareableConstantNode<'pr> { /* private fields */ }
Expand description
This node wraps a constant write to indicate that when the value is written, it should have its shareability state modified.
# shareable_constant_value: literal
C = { a: 1 }
^^^^^^^^^^^^
Implementations§
Sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
Sourcepub fn is_literal(&self) -> bool
pub fn is_literal(&self) -> bool
constant writes that should be modified with shareable constant value literal
Sourcepub fn is_experimental_everything(&self) -> bool
pub fn is_experimental_everything(&self) -> bool
constant writes that should be modified with shareable constant value experimental everything
Sourcepub fn is_experimental_copy(&self) -> bool
pub fn is_experimental_copy(&self) -> bool
constant writes that should be modified with shareable constant value experimental copy
Trait Implementations§
Auto Trait Implementations§
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