pub struct ColorTable { /* private fields */ }Expand description
Named-color registry, including \definecolor overrides.
§Examples
use latex_rust::ColorTable;
let mut t = ColorTable::new();
assert!(!t.is_empty());
t.define("ok", "named", "red").unwrap();
assert_eq!(t.get("ok").unwrap().css_hex(), "#ff0000");Implementations§
Source§impl ColorTable
impl ColorTable
Trait Implementations§
Source§impl Clone for ColorTable
impl Clone for ColorTable
Source§impl Debug for ColorTable
impl Debug for ColorTable
Auto Trait Implementations§
impl Freeze for ColorTable
impl RefUnwindSafe for ColorTable
impl Send for ColorTable
impl Sync for ColorTable
impl Unpin for ColorTable
impl UnsafeUnpin for ColorTable
impl UnwindSafe for ColorTable
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