pub fn palette(&self) -> Option<&Palette> {
    unsafe {
      match NonNull::new((*self.nn.as_ptr()).palette) {
        // Note(Lokathor): Hey can't you use map here? Naw, the lifetimes get weird.
        Some(nn) => Some(
          &*(&nn as *const std::ptr::NonNull<fermium::SDL_Palette> as *const palette::Palette<'_>),
        ),
        None => None,
      }
    }
  }
/// Obtains the palette of this format, if any.
Obtains the palette of this format, if any.
Obtains the palette of this format if any .
pub fn palette(&self) -> Option<&Palette> {
    unsafe {
      match NonNull::new((*self.nn.as_ptr()).palette) {
        // Note(Lokathor): Hey can't you use map here? Naw, the lifetimes get weird.
        Some(nn) => Some(
          &*(&nn as *const std::ptr::NonNull<fermium::SDL_Palette> as *const palette::Palette<'_>),
        ),
        None => None,
      }
    }
  }
pub fn palette ( & self ) -> Option < & Palette > { unsafe { match NonNull :: new ( ( * self . nn . as_ptr ( ) ) . palette ) { // Note(Lokathor): Hey can't you use map here? Naw, the lifetimes get weird. Some ( nn ) => Some ( & * ( & nn as * const std :: ptr :: NonNull < fermium :: SDL_Palette > as * const palette :: Palette < ' _ > ) , ) , None => None , } } }
Obtains the palette of this format, if any.
Obtains the palette of this format if any .
&self
&self