Struct swipl_fli::io_stream

source ·
#[repr(C)]
pub struct io_stream {
Show 31 fields pub bufp: *mut c_char, pub limitp: *mut c_char, pub buffer: *mut c_char, pub unbuffer: *mut c_char, pub lastc: c_int, pub magic: c_int, pub bufsize: c_int, pub flags: c_uint, pub posbuf: IOPOS, pub position: *mut IOPOS, pub handle: *mut c_void, pub functions: *mut IOFUNCTIONS, pub timeout: c_int, pub encoding: IOENC, pub locks: c_int, pub references: c_int, pub mutex: *mut IOLOCK, pub close_hook: Option<unsafe extern "C" fn(closure: *mut c_void)>, pub closure: *mut c_void, pub mbstate: *mut mbstate_t, pub tee: *mut io_stream, pub upstream: *mut io_stream, pub downstream: *mut io_stream, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub io_errno: c_int, pub message: *mut c_char, pub exception: *mut c_void, pub context: *mut c_void, pub locale: *mut PL_locale, pub reserved: [isize; 4],
}

Fields§

§bufp: *mut c_char§limitp: *mut c_char§buffer: *mut c_char§unbuffer: *mut c_char§lastc: c_int§magic: c_int§bufsize: c_int§flags: c_uint§posbuf: IOPOS§position: *mut IOPOS§handle: *mut c_void§functions: *mut IOFUNCTIONS§timeout: c_int§encoding: IOENC§locks: c_int§references: c_int§mutex: *mut IOLOCK§close_hook: Option<unsafe extern "C" fn(closure: *mut c_void)>§closure: *mut c_void§mbstate: *mut mbstate_t§tee: *mut io_stream§upstream: *mut io_stream§downstream: *mut io_stream§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§io_errno: c_int§message: *mut c_char§exception: *mut c_void§context: *mut c_void§locale: *mut PL_locale§reserved: [isize; 4]

Implementations§

source§

impl io_stream

source

pub fn newline(&self) -> c_uint

source

pub fn set_newline(&mut self, val: c_uint)

source

pub fn erased(&self) -> c_uint

source

pub fn set_erased(&mut self, val: c_uint)

source

pub fn new_bitfield_1( newline: c_uint, erased: c_uint ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

source§

impl Clone for io_stream

source§

fn clone(&self) -> io_stream

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 io_stream

source§

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

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

impl Copy for io_stream

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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.