Struct genet_sdk::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<'a>
[src]
pub fn from_mut_ref(layer: &'a mut Layer) -> Parent<'a>
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>(&self, id: T) -> Option<&Attr> where
T: Into<Token>,
[src]
pub fn attr<T>(&self, id: T) -> Option<&Attr> where
T: Into<Token>,
Find the attribute in the Layer.
pub fn add_attr<T>(&mut self, attr: T) where
T: Into<Fixed<Attr>>,
[src]
pub fn add_attr<T>(&mut self, attr: T) where
T: Into<Fixed<Attr>>,
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>(&mut self, layer: T) where
T: Into<MutFixed<Layer>>,
[src]
pub fn add_child<T>(&mut self, layer: T) where
T: Into<MutFixed<Layer>>,
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>(&self, id: T) -> Option<&Attr> where
T: Into<Token>,
[src]
pub fn attr<T>(&self, id: T) -> Option<&Attr> where
T: Into<Token>,
Find the attribute in the Layer.
pub fn add_attr<T>(&mut self, attr: T) where
T: Into<Fixed<Attr>>,
[src]
pub fn add_attr<T>(&mut self, attr: T) where
T: Into<Fixed<Attr>>,
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.