Struct sdl2::rwops::RWops[src]

pub struct RWops {
    pub raw: *SDL_RWops,
    pub close_on_drop: bool,
}

Fields

raw
close_on_drop

Methods

impl RWops

A structure that provides an abstract interface to stream I/O.

fn from_file(path: &Path, mode: &str) -> Result<RWops, ~str>

fn from_bytes(buf: &[u8]) -> Result<RWops, ~str>

Trait Implementations

impl Drop for RWops

fn drop(&mut self)

impl Reader for RWops

fn read(&mut self, buf: &mut [u8]) -> IoResult<uint>

impl Writer for RWops

fn write(&mut self, buf: &[u8]) -> IoResult<()>

impl Seek for RWops

fn tell(&self) -> IoResult<u64>

fn seek(&mut self, pos: i64, style: SeekStyle) -> IoResult<()>

impl Container for RWops

fn len(&self) -> uint

Derived Implementations

impl Eq for RWops

fn eq(&self, __arg_0: &RWops) -> bool

fn ne(&self, __arg_0: &RWops) -> bool