Enum sic_parser::named_value::NamedValue
source · [−]Variants
Rgba(u8, u8, u8, u8)
Size(f32)
Font(PathBuf)
Coord((i32, i32))
Implementations
sourceimpl NamedValue
impl NamedValue
pub fn extract_rgba(&self) -> Result<[u8; 4], NamedValueError>
pub fn extract_size(&self) -> Result<f32, NamedValueError>
pub fn extract_font(&self) -> Result<PathBuf, NamedValueError>
pub fn extract_coord(&self) -> Result<(i32, i32), NamedValueError>
Trait Implementations
sourceimpl Clone for NamedValue
impl Clone for NamedValue
sourcefn clone(&self) -> NamedValue
fn clone(&self) -> NamedValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NamedValue
impl Debug for NamedValue
Auto Trait Implementations
impl RefUnwindSafe for NamedValue
impl Send for NamedValue
impl Sync for NamedValue
impl Unpin for NamedValue
impl UnwindSafe for NamedValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more