Skip to main content

BytesRef

Type Alias BytesRef 

Source
pub type BytesRef<'str, 'ctx> = BaseRef<&'ctx Shared<'str>, BytesId>;

Aliased Type§

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

Fields§

§id: BytesId

Trait Implementations§

Source§

impl Display for BytesRef<'_, '_>

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

Source§

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