pub struct NarrowedShape {
pub pos: Position,
pub types: NarrowingShape,
}Fields§
§pos: Position§types: NarrowingShapeImplementations§
Source§impl NarrowedShape
impl NarrowedShape
pub fn new(types: Vec<Shape>, line: usize, column: usize, offset: usize) -> Self
pub fn new_with_pos(types: Vec<Shape>, pos: Position) -> Self
pub fn with_pos(self, pos: Position) -> Self
pub fn merge_in_shape( &mut self, shape: Shape, symbol_table: &mut BTreeMap<Rc<str>, Shape>, )
Trait Implementations§
Source§impl Clone for NarrowedShape
impl Clone for NarrowedShape
Source§fn clone(&self) -> NarrowedShape
fn clone(&self) -> NarrowedShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NarrowedShape
impl Debug for NarrowedShape
Source§impl PartialEq for NarrowedShape
impl PartialEq for NarrowedShape
impl StructuralPartialEq for NarrowedShape
Auto Trait Implementations§
impl Freeze for NarrowedShape
impl RefUnwindSafe for NarrowedShape
impl !Send for NarrowedShape
impl !Sync for NarrowedShape
impl Unpin for NarrowedShape
impl UnsafeUnpin for NarrowedShape
impl UnwindSafe for NarrowedShape
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