Struct ArrayBufferSetting

Source
pub struct ArrayBufferSetting(/* private fields */);

Trait Implementations§

Source§

impl CachedSettings for ArrayBufferSetting

Source§

fn set(gl: &Gl, value: &Self)

Source§

fn read_cached(cache: &impl Deref<Target = SettingsCache>) -> Self

Source§

fn write_cached(cache: &mut impl DerefMut<Target = SettingsCache>, value: &Self)

Source§

impl Clone for ArrayBufferSetting

Source§

fn clone(&self) -> ArrayBufferSetting

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArrayBufferSetting

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ArrayBufferSetting

Source§

fn default() -> ArrayBufferSetting

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ArrayBufferSetting

Source§

fn eq(&self, other: &ArrayBufferSetting) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ArrayBufferSetting

Source§

impl StructuralPartialEq for ArrayBufferSetting

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Settings for T

Source§

fn apply<R, F>(&self, gl: &Gl, cache: &RefCell<SettingsCache>, callback: F) -> R
where F: FnOnce() -> R,

Source§

fn depth_test(self, value: bool) -> ComposedSetting<Self, DepthTestSetting>

Source§

fn blend(self, value: bool) -> ComposedSetting<Self, BlendSetting>

Source§

fn blend_equation( self, color: BlendEquation, alpha: BlendEquation, ) -> ComposedSetting<Self, BlendEquationSetting>

Source§

fn blend_function( self, src_rgb: BlendFunction, dst_rgb: BlendFunction, src_alpha: BlendFunction, dst_alpha: BlendFunction, ) -> ComposedSetting<Self, BlendFunctionSetting>

Source§

fn depth_function( self, function: DepthFunction, ) -> ComposedSetting<Self, DepthFunction>

Source§

fn active_texture( self, index: u32, ) -> ComposedSetting<Self, ActiveTextureSetting>

Source§

fn texture( self, index: u32, texture: Texture, ) -> ComposedSetting<Self, TextureSetting>

Source§

fn texture_list<T: IntoIterator<Item = Texture>>( self, textures: T, ) -> ComposedSetting<Self, TextureListSetting>

Source§

fn texture_filter( self, texture: Texture, filter: TextureFilter, ) -> ComposedSetting<Self, TextureFilterSetting>

Source§

fn array_buffer( self, array_buffer: ArrayBuffer, ) -> ComposedSetting<Self, ArrayBufferSetting>

Source§

fn items_buffer<T: Item>( self, array_buffer: ItemsBuffer<T>, ) -> ComposedSetting<Self, ArrayBufferSetting>

Source§

fn element_buffer( self, element_buffer: ElementsBuffer, ) -> ComposedSetting<Self, ElementBufferSetting>

Source§

fn enabled_attributes( self, attributes: &[u32], ) -> ComposedSetting<Self, EnabledAttributesSetting>

Source§

fn program(self, program: Program) -> ComposedSetting<Self, ProgramSetting>

Source§

fn clear_color( self, r: f32, g: f32, b: f32, alpha: f32, ) -> ComposedSetting<Self, ClearColorSetting>

Source§

fn clear_depth(self, value: f32) -> ComposedSetting<Self, ClearDepthSetting>

Source§

fn viewport( self, x: i32, y: i32, width: i32, height: i32, ) -> ComposedSetting<Self, ViewportSetting>

Source§

fn depth_buffer( self, buffer: DepthBuffer, ) -> ComposedSetting<Self, DepthBufferSetting>

Source§

fn frame_buffer( self, buffer: FrameBuffer, ) -> ComposedSetting<Self, FrameBufferSetting>

Source§

fn cull_face(self, cull_face: CullFace) -> ComposedSetting<Self, CullFace>

Source§

fn color_mask( self, r: bool, g: bool, b: bool, a: bool, ) -> ComposedSetting<Self, ColorMask>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.