pub enum Version {
Latest,
CRuby3_3,
CRuby3_4,
CRuby3_5,
CRuby4_1,
}Expand description
The version of Ruby syntax to parse with.
Variants§
Latest
Use the latest version of prism.
CRuby3_3
The vendored version of prism in CRuby 3.3.x.
CRuby3_4
The vendored version of prism in CRuby 3.4.x.
CRuby3_5
The vendored version of prism in CRuby 3.5.x / 4.0.x.
CRuby4_1
The vendored version of prism in CRuby 4.1.x.
Trait Implementations§
Source§impl From<Version> for pm_options_version_t
impl From<Version> for pm_options_version_t
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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