Struct genet_abi::layer::Layer [−][src]
#[repr(C)]pub struct Layer { /* fields omitted */ }
A layer object.
Methods
impl Layer
[src]
impl Layer
pub fn new<C: Into<Fixed<LayerClass>>, B: Into<ByteSlice>>(
class: C,
data: B
) -> Layer
[src]
pub fn new<C: Into<Fixed<LayerClass>>, B: Into<ByteSlice>>(
class: C,
data: B
) -> Layer
Creates a new Layer.
pub fn id(&self) -> Token
[src]
pub fn id(&self) -> Token
Returns the ID of self.
pub fn data(&self) -> ByteSlice
[src]
pub fn data(&self) -> ByteSlice
Returns the type of self.
pub fn headers(&self) -> &[Fixed<Attr>]
[src]
pub fn headers(&self) -> &[Fixed<Attr>]
Returns the slice of headers.
pub fn attrs(&self) -> &[Fixed<Attr>]
[src]
pub fn attrs(&self) -> &[Fixed<Attr>]
Returns the slice of attributes.
pub fn attr<T: Into<Token>>(&self, id: T) -> Option<&Attr>
[src]
pub fn attr<T: Into<Token>>(&self, id: T) -> Option<&Attr>
Find the attribute in the Layer.
pub fn add_attr<T: Into<Fixed<Attr>>>(&mut self, attr: T)
[src]
pub fn add_attr<T: Into<Fixed<Attr>>>(&mut self, attr: T)
Adds an attribute to the Layer.
pub fn payloads(&self) -> &[Payload]
[src]
pub fn payloads(&self) -> &[Payload]
Returns the slice of payloads.
pub fn add_payload(&mut self, payload: Payload)
[src]
pub fn add_payload(&mut self, payload: Payload)
Adds a payload to the Layer.
Trait Implementations
impl Send for Layer
[src]
impl Send for Layer
impl Debug for Layer
[src]
impl Debug for Layer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Into<MutFixed<Layer>> for Layer
[src]
impl Into<MutFixed<Layer>> for Layer