Struct swipl::fli::io_stream

source ·
#[repr(C)]
pub struct io_stream {
Show 31 fields pub bufp: *mut i8, pub limitp: *mut i8, pub buffer: *mut i8, pub unbuffer: *mut i8, pub lastc: i32, pub magic: i32, pub bufsize: i32, pub flags: u32, pub posbuf: io_position, pub position: *mut io_position, pub handle: *mut c_void, pub functions: *mut io_functions, pub timeout: i32, pub encoding: u32, pub locks: i32, pub references: i32, pub mutex: *mut recursiveMutex, pub close_hook: Option<unsafe extern "C" fn(_: *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: i32, pub message: *mut i8, pub exception: *mut c_void, pub context: *mut c_void, pub locale: *mut PL_locale, pub reserved: [isize; 4],
}

Fields§

§bufp: *mut i8§limitp: *mut i8§buffer: *mut i8§unbuffer: *mut i8§lastc: i32§magic: i32§bufsize: i32§flags: u32§posbuf: io_position§position: *mut io_position§handle: *mut c_void§functions: *mut io_functions§timeout: i32§encoding: u32§locks: i32§references: i32§mutex: *mut recursiveMutex§close_hook: Option<unsafe extern "C" fn(_: *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: i32§message: *mut i8§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) -> u32

source

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

source

pub fn erased(&self) -> u32

source

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

source

pub fn new_bitfield_1( newline: u32, erased: u32 ) -> __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<(), Error>

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.