pub struct RegExpLiteral { /* private fields */ }Expand description
Port of JSLexer.h’s RegExpLiteral: an interned body and flags.
Implementations§
Source§impl RegExpLiteral
impl RegExpLiteral
Sourcepub fn new(body: AtomBytes, flags: AtomBytes) -> RegExpLiteral
pub fn new(body: AtomBytes, flags: AtomBytes) -> RegExpLiteral
A literal with the given interned body and flags.
Trait Implementations§
Source§impl Clone for RegExpLiteral
impl Clone for RegExpLiteral
Source§fn clone(&self) -> RegExpLiteral
fn clone(&self) -> RegExpLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegExpLiteral
Auto Trait Implementations§
impl Freeze for RegExpLiteral
impl RefUnwindSafe for RegExpLiteral
impl Send for RegExpLiteral
impl Sync for RegExpLiteral
impl Unpin for RegExpLiteral
impl UnsafeUnpin for RegExpLiteral
impl UnwindSafe for RegExpLiteral
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