Skip to main content

IntAttrExt

Trait IntAttrExt 

Source
pub trait IntAttrExt {
    // Required methods
    fn as_value<T>(&self, ctx: &Context) -> Option<T>
       where T: TypedLiteral + Copy + 'static,
             i128: AsPrimitive<T>;
    fn with_value<T: NumCast>(&self, ctx: &Context, new_val: T) -> Self;
}

Required Methods§

Source

fn as_value<T>(&self, ctx: &Context) -> Option<T>
where T: TypedLiteral + Copy + 'static, i128: AsPrimitive<T>,

Source

fn with_value<T: NumCast>(&self, ctx: &Context, new_val: T) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntAttrExt for IntegerAttr

Source§

fn as_value<T>(&self, ctx: &Context) -> Option<T>
where T: TypedLiteral + Copy + 'static, i128: AsPrimitive<T>,

Source§

fn with_value<T: NumCast>(&self, ctx: &Context, new_val: T) -> Self

Implementors§