Skip to main content

PoisonRef

Type Alias PoisonRef 

Source
pub type PoisonRef<'str, 'ctx> = BaseRef<&'ctx Shared<'str>, PoisonId>;

Aliased Type§

pub struct PoisonRef<'str, 'ctx> {
    pub id: PoisonId,
    /* private fields */
}

Fields§

§id: PoisonId

Trait Implementations§

Source§

impl Display for PoisonRef<'_, '_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'str, 'ctx> Value<'str, 'ctx> for PoisonRef<'str, 'ctx>

Source§

fn id(&self) -> ValueId

The context-unique identifier for this value.
Source§

fn size(&self) -> usize

The size of this value’s output in bytes, or 0 for non-data values (terminators, blocks, functions).
Source§

impl<'s, 'ctx: 's, 'str: 'ctx> WithShared<'s, 'ctx, 'str> for PoisonRef<'str, 'ctx>

Source§

fn shared(&'s self) -> &'ctx Shared<'str>