[−][src]Struct egui::Texture
An 8-bit texture containing font data.
Fields
version: u64
e.g. a hash of the data. Use this to detect changes! If the texture changes, this too will change.
width: usize
height: usize
pixels: Vec<u8>
Implementations
impl Texture
[src]
Trait Implementations
impl Clone for Texture
[src]
impl Default for Texture
[src]
impl Index<(usize, usize)> for Texture
[src]
type Output = u8
The returned type after indexing.
fn index(&self, (x, y): (usize, usize)) -> &u8
[src]
impl IndexMut<(usize, usize)> for Texture
[src]
Auto Trait Implementations
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
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,
pub 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<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,