pub struct Registry { /* private fields */ }
Expand description
Representation of the OpenGL registry.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn retrieve() -> Result<Registry, RegistryError>
Available on crate feature include-xml
only.
pub fn retrieve() -> Result<Registry, RegistryError>
include-xml
only.Retrieves the OpenGL registry from a included XML file.
§Errors
Returns Err
if parsing fails in any way.
Sourcepub fn retrieve_from_bytes(xml_bytes: &[u8]) -> Result<Registry, RegistryError>
pub fn retrieve_from_bytes(xml_bytes: &[u8]) -> Result<Registry, RegistryError>
Sourcepub fn retrieve_from_file(
xml_file: &mut File,
) -> Result<Registry, RegistryError>
pub fn retrieve_from_file( xml_file: &mut File, ) -> Result<Registry, RegistryError>
Retrieves the OpenGL registry from a XML file.
§Errors
Returns Err
if:
- Parsing fails in any way.
- An I/O error occurs.
Sourcepub fn new(commands: impl IntoIterator<Item = Command>) -> Self
pub fn new(commands: impl IntoIterator<Item = Command>) -> Self
Creates a new Registry
.
§Note
This will NOT use anything from the actual OpenGL registry. Use the
Registry::retrieve
method for that.
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
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