Trait syntex_syntax::attr::ThinAttributesExt
[−]
[src]
pub trait ThinAttributesExt { fn map_thin_attrs<F>(self, f: F) -> Self where F: FnOnce(Vec<Attribute>) -> Vec<Attribute>; fn prepend(self, attrs: Self) -> Self; fn append(self, attrs: Self) -> Self; fn update<F>(&mut self, f: F) where Self: Sized, F: FnOnce(Self) -> Self; fn as_attr_slice(&self) -> &[Attribute]; fn into_attr_vec(self) -> Vec<Attribute>; }
Required Methods
fn map_thin_attrs<F>(self, f: F) -> Self where F: FnOnce(Vec<Attribute>) -> Vec<Attribute>
fn prepend(self, attrs: Self) -> Self
fn append(self, attrs: Self) -> Self
fn update<F>(&mut self, f: F) where Self: Sized, F: FnOnce(Self) -> Self
fn as_attr_slice(&self) -> &[Attribute]
fn into_attr_vec(self) -> Vec<Attribute>
Implementors
impl ThinAttributesExt for ThinAttributes