Struct dae_parser::Controller
source · [−]pub struct Controller {
pub id: Option<String>,
pub name: Option<String>,
pub asset: Option<Box<Asset>>,
pub element: ControlElement,
pub extra: Vec<Extra>,
}
Expand description
Categorizes the declaration of generic control information.
Fields
id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
asset: Option<Box<Asset>>
Asset management information about this element.
element: ControlElement
The element that contains control data.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations
sourceimpl Controller
impl Controller
sourcepub fn new(element: ControlElement) -> Self
pub fn new(element: ControlElement) -> Self
Create a new Controller
from a ControlElement
.
Trait Implementations
sourceimpl Clone for Controller
impl Clone for Controller
sourcefn clone(&self) -> Controller
fn clone(&self) -> Controller
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Controller
impl Debug for Controller
sourceimpl HasId for Controller
impl HasId for Controller
sourcefn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
fn get_local_map<'a, 'b>(
maps: &'b LocalMaps<'a>
) -> &'b Option<LocalMap<'a, Self>>
Extract the relevant
LocalMap
field from a LocalMaps
.sourcefn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
fn get_local_map_mut<'a, 'b>(
maps: &'b mut LocalMaps<'a>
) -> &'b mut Option<LocalMap<'a, Self>>
Extract the relevant
LocalMap
field from a LocalMaps
.sourceimpl ParseLibrary for Controller
impl ParseLibrary for Controller
sourcefn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single
LibraryElement
.sourcefn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a
LibraryElement
from a Library
.sourceimpl Traversable for Controller
impl Traversable for Controller
Auto Trait Implementations
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more