pub struct Register { /* private fields */ }Expand description
Manages the CSS of lewp components in the given file hierarchy.
This register can be used in multi threaded environments as a shared variable. It loads all components available in the given file hierarchy and keeps them in memory, as long as this instance is available.
Implementations§
Source§impl Register
impl Register
Sourcepub fn new(fh: FileHierarchy, options: RegisterOptions) -> Self
pub fn new(fh: FileHierarchy, options: RegisterOptions) -> Self
Creates a new Register instance.
Sourcepub fn query(
&self,
component_information: Rc<ComponentInformation>,
entity: Entireness,
) -> Option<Arc<String>>
pub fn query( &self, component_information: Rc<ComponentInformation>, entity: Entireness, ) -> Option<Arc<String>>
Queries the CSS of the given component using the given options.
Sourcepub fn load_process_components(&mut self) -> Result<(), LewpError>
pub fn load_process_components(&mut self) -> Result<(), LewpError>
Collects, processes and caches all available CSS in the file hierarchy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Register
impl RefUnwindSafe for Register
impl !Send for Register
impl !Sync for Register
impl Unpin for Register
impl UnwindSafe for Register
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more