Skip to main content

BlockParamMutRef

Type Alias BlockParamMutRef 

Source
pub type BlockParamMutRef<'str, 'ctx> = BaseRef<&'ctx mut Context<'str>, BlockParamId>;

Aliased Type§

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

Fields§

§id: BlockParamId

Implementations§

Source§

impl<'str, 'ctx> BlockParamMutRef<'str, 'ctx>

Source

pub fn set_origin(&mut self, origin: ValueId)

Record the source value this param promotes (see BlockParam::origin).

Source

pub fn constrain_size(&mut self, size: usize)

Source

pub fn as_ref(&self) -> BlockParamRef<'str, '_>

Trait Implementations§

Source§

impl Display for BlockParamMutRef<'_, '_>

Source§

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

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

impl Named for BlockParamMutRef<'_, '_>

Source§

fn name(&self) -> Option<&str>

Source§

impl<'str, 'ctx> Value<'str, 'ctx> for BlockParamMutRef<'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> WithCtx<'s, 's, 'str> for BlockParamMutRef<'str, 'ctx>

Source§

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

Source§

impl<'s, 'ctx: 's, 'str: 'ctx> WithCtxMut<'s, 'str> for BlockParamMutRef<'str, 'ctx>

Source§

fn ctx_mut(&'s mut self) -> &'s mut Context<'str>