Trait RAttribute

Source
pub trait RAttribute: ToSEXP {
    // Provided methods
    fn get_attr<D: RNew, S: SEXPbucket, EE: Into<SymbolM<S>>>(
        &self,
        name: EE,
    ) -> RResult<D> { ... }
    fn set_attr<T: ToSEXP, EE: Into<SymbolM<S>>, S: SEXPbucket>(
        &self,
        name: EE,
        attr: T,
    ) { ... }
    fn attribute_names(&self) -> Vec<CString> { ... }
    fn has_attribute(&self, attr: &str) -> bool { ... }
    fn attributte<D: RNew>(&self) -> RResult<D> { ... }
}

Provided Methods§

Source

fn get_attr<D: RNew, S: SEXPbucket, EE: Into<SymbolM<S>>>( &self, name: EE, ) -> RResult<D>

Source

fn set_attr<T: ToSEXP, EE: Into<SymbolM<S>>, S: SEXPbucket>( &self, name: EE, attr: T, )

Source

fn attribute_names(&self) -> Vec<CString>

Source

fn has_attribute(&self, attr: &str) -> bool

Source

fn attributte<D: RNew>(&self) -> RResult<D>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§