Struct rustlr::generic_absyn::LRc
source · [−]Expand description
Fields
exp: Rc<T>
line: u32
column: u32
Implementations
sourceimpl<T> LRc<T>
impl<T> LRc<T>
pub fn new(e: T, ln: usize, col: usize) -> LRc<T>
sourcepub fn transfer<U>(&self, e: U) -> LRc<U>
pub fn transfer<U>(&self, e: U) -> LRc<U>
should be used to create a new LRc-expression that inherits lexical information from existing LRc
sourcepub fn clone(lrc: &LRc<T>) -> LRc<T>
pub fn clone(lrc: &LRc<T>) -> LRc<T>
uses Rc::clone to increase reference count of encapsulated Rc, copies line, column and source_id information.
pub fn line(&self) -> usize
pub fn column(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for LRc<T> where
T: RefUnwindSafe,
impl<T> !Send for LRc<T>
impl<T> !Sync for LRc<T>
impl<T: ?Sized> Unpin for LRc<T>
impl<T: ?Sized> UnwindSafe for LRc<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more