Enum lib_ruby_parser::source::MagicCommentKind [−][src]
#[repr(C)]
pub enum MagicCommentKind {
Encoding,
FrozenStringLiteral,
WarnIndent,
ShareableConstantValue,
}Expand description
An enum of all magic comment kinds
Variants
# encoding: ... comment
# frozen_string_literal: true/false comment
# warn_indent: true/false comment
# shareable_constant_value: ... comment
Implementations
Constructs FrozenStringLiteral variant
Constructs WarnIndent variant
Constructs ShareableConstantValue variant
Returns true if variant is Encoding
Returns true if variant is FrozenStringLiteral
Returns true if variant is WarnIndent
Returns true if variant is ShareableConstantValue
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MagicCommentKind
impl Send for MagicCommentKind
impl Sync for MagicCommentKind
impl Unpin for MagicCommentKind
impl UnwindSafe for MagicCommentKind
Blanket Implementations
Mutably borrows from an owned value. Read more