pub struct OpenArgs {
pub buffering: isize,
pub encoding: Option<PyUtf8StrRef>,
pub errors: Option<PyUtf8StrRef>,
pub newline: Option<PyUtf8StrRef>,
pub closefd: bool,
pub opener: Option<PyObjectRef>,
}Fields§
§buffering: isize§encoding: Option<PyUtf8StrRef>§errors: Option<PyUtf8StrRef>§newline: Option<PyUtf8StrRef>§closefd: bool§opener: Option<PyObjectRef>Trait Implementations§
Source§impl FromArgs for OpenArgs
impl FromArgs for OpenArgs
Source§const PARAMS: Option<&'static [Param]>
const PARAMS: Option<&'static [Param]>
Parameters this type contributes to a text signature. Read more
Source§fn arity() -> RangeInclusive<usize> ⓘ
fn arity() -> RangeInclusive<usize> ⓘ
The range of positional arguments permitted by the function signature. Read more
Source§fn from_args(
vm: &VirtualMachine,
args: &mut FuncArgs,
) -> Result<Self, ArgumentError>
fn from_args( vm: &VirtualMachine, args: &mut FuncArgs, ) -> Result<Self, ArgumentError>
Extracts this item from the next argument(s).
Auto Trait Implementations§
impl !RefUnwindSafe for OpenArgs
impl !Send for OpenArgs
impl !Sync for OpenArgs
impl !UnwindSafe for OpenArgs
impl Freeze for OpenArgs
impl Unpin for OpenArgs
impl UnsafeUnpin for OpenArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more