Struct genet_abi::layer::Parent [−][src]
#[repr(C)]pub struct Parent<'a> { /* fields omitted */ }
A mutable proxy for a layer object.
Methods
impl<'a> Parent<'a>
[src]
impl<'a> Parent<'a>
pub fn from_mut_ref(layer: &'a mut Layer) -> Parent
[src]
pub fn from_mut_ref(layer: &'a mut Layer) -> Parent
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.
pub fn add_child<T: Into<MutFixed<Layer>>>(&mut self, layer: T)
[src]
pub fn add_child<T: Into<MutFixed<Layer>>>(&mut self, layer: T)
pub fn children(&self) -> &[*mut Layer]
[src]
pub fn children(&self) -> &[*mut Layer]
Methods from Deref<Target = 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<'a> Deref for Parent<'a>
[src]
impl<'a> Deref for Parent<'a>
type Target = Layer
The resulting type after dereferencing.
fn deref(&self) -> &Layer
[src]
fn deref(&self) -> &Layer
Dereferences the value.
impl<'a> DerefMut for Parent<'a>
[src]
impl<'a> DerefMut for Parent<'a>