pub struct BlockTrait<'blk> {
pub base: BlockBase<'blk>,
pub name: String,
pub methods: RwLock<Vec<BlockId>>,
}Fields§
§base: BlockBase<'blk>§name: String§methods: RwLock<Vec<BlockId>>Implementations§
Source§impl<'blk> BlockTrait<'blk>
impl<'blk> BlockTrait<'blk>
pub fn new( id: BlockId, node: HirNode<'blk>, parent: Option<BlockId>, children: Vec<BlockId>, ) -> Self
pub fn new_with_symbol( id: BlockId, node: HirNode<'blk>, parent: Option<BlockId>, children: Vec<BlockId>, symbol: Option<&'blk Symbol>, ) -> Self
pub fn add_method(&self, method_id: BlockId)
pub fn get_methods(&self) -> Vec<BlockId>
pub fn format(&self) -> String
Trait Implementations§
Source§impl<'a> ArenaInsert<'a> for BlockTrait<'a>
impl<'a> ArenaInsert<'a> for BlockTrait<'a>
fn insert_into(self, arena: &'a ArenaInner) -> &'a Self
Source§impl<'a> ArenaInsertWithId<'a> for BlockTrait<'a>
impl<'a> ArenaInsertWithId<'a> for BlockTrait<'a>
fn insert_with_id(self, arena: &'a ArenaInner, id: usize) -> &'a Self
Auto Trait Implementations§
impl<'blk> !Freeze for BlockTrait<'blk>
impl<'blk> !RefUnwindSafe for BlockTrait<'blk>
impl<'blk> Send for BlockTrait<'blk>
impl<'blk> Sync for BlockTrait<'blk>
impl<'blk> Unpin for BlockTrait<'blk>
impl<'blk> !UnwindSafe for BlockTrait<'blk>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more