Skip to main content

BlockId

Type Alias BlockId 

Source
pub type BlockId = BlockIdLt<'static>;

Aliased Type§

pub struct BlockId(pub(crate) Id, pub(crate) PhantomData<fn() -> &'static ()>);

Tuple Fields§

§0: Id§1: PhantomData<fn() -> &'static ()>

Implementations§

Source§

impl BlockId

Source

pub unsafe fn to_db<'db>(self, _db: &'db dyn SourceDatabase) -> BlockIdLt<'db>

§Safety

The caller must ensure that the BlockId comes from the given database.