[−][src]Struct web_glitz::pipeline::graphics::LineWidth
Defines the line width used by a [Rasterizer].
Can be constructed from an f32 via TryFrom:
use std::convert::TryFrom; use web_glitz::pipeline::graphics::LineWidth; let line_width = LineWidth::try_from(2.0).unwrap();
The value must not be negative or f32::NAN, otherwise [InvalidLineWidth] is returned.
A LineWidth may be instantiated with the default value through Default:
use std::convert::TryFrom; use web_glitz::pipeline::graphics::LineWidth; assert_eq!(LineWidth::default(), LineWidth::try_from(1.0).unwrap());
Trait Implementations
impl Clone for LineWidth[src]
impl Copy for LineWidth[src]
impl Debug for LineWidth[src]
impl Default for LineWidth[src]
impl Deref for LineWidth[src]
impl PartialEq<LineWidth> for LineWidth[src]
impl StructuralPartialEq for LineWidth[src]
impl TryFrom<f32> for LineWidth[src]
Auto Trait Implementations
impl RefUnwindSafe for LineWidth
impl Send for LineWidth
impl Sync for LineWidth
impl Unpin for LineWidth
impl UnwindSafe for LineWidth
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,