pub enum Version {
Latest,
CRuby3_3,
CRuby3_4,
CRuby3_5,
CRuby4_0,
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
๐Deprecated since 2.1.0:
Use Version::CRuby4_0 instead
The vendored version of prism in CRuby 4.0.x, formerly known as 3.5.x.
CRuby4_0
The vendored version of prism in CRuby 4.0.x.
CRuby4_1
The vendored version of prism in CRuby 4.1.x.
Trait Implementationsยง
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 UnsafeUnpin 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