#[non_exhaustive]#[repr(u32)]pub enum pm_interpolated_string_node_flags {
PM_INTERPOLATED_STRING_NODE_FLAGS_FROZEN = 4,
PM_INTERPOLATED_STRING_NODE_FLAGS_MUTABLE = 8,
}
Expand description
Flags for interpolated string nodes that indicated mutability if they are also marked as literals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PM_INTERPOLATED_STRING_NODE_FLAGS_FROZEN = 4
frozen by virtue of a frozen_string_literal: true
comment or --enable-frozen-string-literal
; only for adjacent string literals like 'a' 'b'
PM_INTERPOLATED_STRING_NODE_FLAGS_MUTABLE = 8
mutable by virtue of a frozen_string_literal: false
comment or --disable-frozen-string-literal
; only for adjacent string literals like 'a' 'b'
Trait Implementations§
Source§impl Clone for pm_interpolated_string_node_flags
impl Clone for pm_interpolated_string_node_flags
Source§fn clone(&self) -> pm_interpolated_string_node_flags
fn clone(&self) -> pm_interpolated_string_node_flags
Returns a copy 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 pm_interpolated_string_node_flags
impl PartialEq for pm_interpolated_string_node_flags
Source§fn eq(&self, other: &pm_interpolated_string_node_flags) -> bool
fn eq(&self, other: &pm_interpolated_string_node_flags) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for pm_interpolated_string_node_flags
impl Eq for pm_interpolated_string_node_flags
impl StructuralPartialEq for pm_interpolated_string_node_flags
Auto Trait Implementations§
impl Freeze for pm_interpolated_string_node_flags
impl RefUnwindSafe for pm_interpolated_string_node_flags
impl Send for pm_interpolated_string_node_flags
impl Sync for pm_interpolated_string_node_flags
impl Unpin for pm_interpolated_string_node_flags
impl UnwindSafe for pm_interpolated_string_node_flags
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