Skip to main content

LiteralRef

Type Alias LiteralRef 

Source
pub type LiteralRef<'str, 'ctx> = BaseRef<&'ctx Shared<'str>, LiteralId>;

Aliased Type§

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

Fields§

§id: LiteralId

Trait Implementations§

Source§

impl Display for LiteralRef<'_, '_>

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 LiteralRef<'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 LiteralRef<'str, 'ctx>

Source§

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