pub struct Version40 {Show 47 fields
pub geterror: extern "system" fn() -> u32,
pub minsampleshading: extern "system" fn(f32),
pub blendequationi: extern "system" fn(u32, u32),
pub blendequationseparatei: extern "system" fn(u32, u32, u32),
pub blendfunci: extern "system" fn(u32, u32, u32),
pub blendfuncseparatei: extern "system" fn(u32, u32, u32, u32, u32),
pub drawarraysindirect: extern "system" fn(u32, *const c_void),
pub drawelementsindirect: extern "system" fn(u32, u32, *const c_void),
pub uniform1d: extern "system" fn(i32, f64),
pub uniform2d: extern "system" fn(i32, f64, f64),
pub uniform3d: extern "system" fn(i32, f64, f64, f64),
pub uniform4d: extern "system" fn(i32, f64, f64, f64, f64),
pub uniform1dv: extern "system" fn(i32, i32, *const f64),
pub uniform2dv: extern "system" fn(i32, i32, *const f64),
pub uniform3dv: extern "system" fn(i32, i32, *const f64),
pub uniform4dv: extern "system" fn(i32, i32, *const f64),
pub uniformmatrix2dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix3dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix4dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix2x3dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix2x4dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix3x2dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix3x4dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix4x2dv: extern "system" fn(i32, i32, u8, *const f64),
pub uniformmatrix4x3dv: extern "system" fn(i32, i32, u8, *const f64),
pub getuniformdv: extern "system" fn(u32, i32, *mut f64),
pub getsubroutineuniformlocation: extern "system" fn(u32, u32, *const i8) -> i32,
pub getsubroutineindex: extern "system" fn(u32, u32, *const i8) -> u32,
pub getactivesubroutineuniformiv: extern "system" fn(u32, u32, u32, u32, *mut i32),
pub getactivesubroutineuniformname: extern "system" fn(u32, u32, u32, i32, *mut i32, *mut i8),
pub getactivesubroutinename: extern "system" fn(u32, u32, u32, i32, *mut i32, *mut i8),
pub uniformsubroutinesuiv: extern "system" fn(u32, i32, *const u32),
pub getuniformsubroutineuiv: extern "system" fn(u32, i32, *mut u32),
pub getprogramstageiv: extern "system" fn(u32, u32, u32, *mut i32),
pub patchparameteri: extern "system" fn(u32, i32),
pub patchparameterfv: extern "system" fn(u32, *const f32),
pub bindtransformfeedback: extern "system" fn(u32, u32),
pub deletetransformfeedbacks: extern "system" fn(i32, *const u32),
pub gentransformfeedbacks: extern "system" fn(i32, *mut u32),
pub istransformfeedback: extern "system" fn(u32) -> u8,
pub pausetransformfeedback: extern "system" fn(),
pub resumetransformfeedback: extern "system" fn(),
pub drawtransformfeedback: extern "system" fn(u32, u32),
pub drawtransformfeedbackstream: extern "system" fn(u32, u32, u32),
pub beginqueryindexed: extern "system" fn(u32, u32, u32),
pub endqueryindexed: extern "system" fn(u32, u32),
pub getqueryindexediv: extern "system" fn(u32, u32, u32, *mut i32),
/* private fields */
}
Expand description
Functions from OpenGL version 4.0
Fields§
§geterror: extern "system" fn() -> u32
The function pointer to glGetError()
minsampleshading: extern "system" fn(f32)
The function pointer to glMinSampleShading()
blendequationi: extern "system" fn(u32, u32)
The function pointer to glBlendEquationi()
blendequationseparatei: extern "system" fn(u32, u32, u32)
The function pointer to glBlendEquationSeparatei()
blendfunci: extern "system" fn(u32, u32, u32)
The function pointer to glBlendFunci()
blendfuncseparatei: extern "system" fn(u32, u32, u32, u32, u32)
The function pointer to glBlendFuncSeparatei()
drawarraysindirect: extern "system" fn(u32, *const c_void)
The function pointer to glDrawArraysIndirect()
drawelementsindirect: extern "system" fn(u32, u32, *const c_void)
The function pointer to glDrawElementsIndirect()
uniform1d: extern "system" fn(i32, f64)
The function pointer to glUniform1d()
uniform2d: extern "system" fn(i32, f64, f64)
The function pointer to glUniform2d()
uniform3d: extern "system" fn(i32, f64, f64, f64)
The function pointer to glUniform3d()
uniform4d: extern "system" fn(i32, f64, f64, f64, f64)
The function pointer to glUniform4d()
uniform1dv: extern "system" fn(i32, i32, *const f64)
The function pointer to glUniform1dv()
uniform2dv: extern "system" fn(i32, i32, *const f64)
The function pointer to glUniform2dv()
uniform3dv: extern "system" fn(i32, i32, *const f64)
The function pointer to glUniform3dv()
uniform4dv: extern "system" fn(i32, i32, *const f64)
The function pointer to glUniform4dv()
uniformmatrix2dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix2dv()
uniformmatrix3dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix3dv()
uniformmatrix4dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix4dv()
uniformmatrix2x3dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix2x3dv()
uniformmatrix2x4dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix2x4dv()
uniformmatrix3x2dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix3x2dv()
uniformmatrix3x4dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix3x4dv()
uniformmatrix4x2dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix4x2dv()
uniformmatrix4x3dv: extern "system" fn(i32, i32, u8, *const f64)
The function pointer to glUniformMatrix4x3dv()
getuniformdv: extern "system" fn(u32, i32, *mut f64)
The function pointer to glGetUniformdv()
getsubroutineuniformlocation: extern "system" fn(u32, u32, *const i8) -> i32
The function pointer to glGetSubroutineUniformLocation()
getsubroutineindex: extern "system" fn(u32, u32, *const i8) -> u32
The function pointer to glGetSubroutineIndex()
getactivesubroutineuniformiv: extern "system" fn(u32, u32, u32, u32, *mut i32)
The function pointer to glGetActiveSubroutineUniformiv()
getactivesubroutineuniformname: extern "system" fn(u32, u32, u32, i32, *mut i32, *mut i8)
The function pointer to glGetActiveSubroutineUniformName()
getactivesubroutinename: extern "system" fn(u32, u32, u32, i32, *mut i32, *mut i8)
The function pointer to glGetActiveSubroutineName()
uniformsubroutinesuiv: extern "system" fn(u32, i32, *const u32)
The function pointer to glUniformSubroutinesuiv()
getuniformsubroutineuiv: extern "system" fn(u32, i32, *mut u32)
The function pointer to glGetUniformSubroutineuiv()
getprogramstageiv: extern "system" fn(u32, u32, u32, *mut i32)
The function pointer to glGetProgramStageiv()
patchparameteri: extern "system" fn(u32, i32)
The function pointer to glPatchParameteri()
patchparameterfv: extern "system" fn(u32, *const f32)
The function pointer to glPatchParameterfv()
bindtransformfeedback: extern "system" fn(u32, u32)
The function pointer to glBindTransformFeedback()
deletetransformfeedbacks: extern "system" fn(i32, *const u32)
The function pointer to glDeleteTransformFeedbacks()
gentransformfeedbacks: extern "system" fn(i32, *mut u32)
The function pointer to glGenTransformFeedbacks()
istransformfeedback: extern "system" fn(u32) -> u8
The function pointer to glIsTransformFeedback()
pausetransformfeedback: extern "system" fn()
The function pointer to glPauseTransformFeedback()
resumetransformfeedback: extern "system" fn()
The function pointer to glResumeTransformFeedback()
drawtransformfeedback: extern "system" fn(u32, u32)
The function pointer to glDrawTransformFeedback()
drawtransformfeedbackstream: extern "system" fn(u32, u32, u32)
The function pointer to glDrawTransformFeedbackStream()
beginqueryindexed: extern "system" fn(u32, u32, u32)
The function pointer to glBeginQueryIndexed()
endqueryindexed: extern "system" fn(u32, u32)
The function pointer to glEndQueryIndexed()
getqueryindexediv: extern "system" fn(u32, u32, u32, *mut i32)
The function pointer to glGetQueryIndexediv()
Implementations§
Trait Implementations§
Source§impl GL_4_0 for Version40
impl GL_4_0 for Version40
Source§fn glGetError(&self) -> u32
fn glGetError(&self) -> u32
Source§fn glMinSampleShading(&self, value: f32) -> Result<(), GLCoreError>
fn glMinSampleShading(&self, value: f32) -> Result<(), GLCoreError>
Source§fn glBlendEquationi(&self, buf: u32, mode: u32) -> Result<(), GLCoreError>
fn glBlendEquationi(&self, buf: u32, mode: u32) -> Result<(), GLCoreError>
Source§fn glBlendEquationSeparatei(
&self,
buf: u32,
modeRGB: u32,
modeAlpha: u32,
) -> Result<(), GLCoreError>
fn glBlendEquationSeparatei( &self, buf: u32, modeRGB: u32, modeAlpha: u32, ) -> Result<(), GLCoreError>
Source§fn glBlendFunci(&self, buf: u32, src: u32, dst: u32) -> Result<(), GLCoreError>
fn glBlendFunci(&self, buf: u32, src: u32, dst: u32) -> Result<(), GLCoreError>
Source§fn glBlendFuncSeparatei(
&self,
buf: u32,
srcRGB: u32,
dstRGB: u32,
srcAlpha: u32,
dstAlpha: u32,
) -> Result<(), GLCoreError>
fn glBlendFuncSeparatei( &self, buf: u32, srcRGB: u32, dstRGB: u32, srcAlpha: u32, dstAlpha: u32, ) -> Result<(), GLCoreError>
Source§fn glDrawArraysIndirect(
&self,
mode: u32,
indirect: *const c_void,
) -> Result<(), GLCoreError>
fn glDrawArraysIndirect( &self, mode: u32, indirect: *const c_void, ) -> Result<(), GLCoreError>
Source§fn glDrawElementsIndirect(
&self,
mode: u32,
type_: u32,
indirect: *const c_void,
) -> Result<(), GLCoreError>
fn glDrawElementsIndirect( &self, mode: u32, type_: u32, indirect: *const c_void, ) -> Result<(), GLCoreError>
Source§fn glUniform1d(&self, location: i32, x: f64) -> Result<(), GLCoreError>
fn glUniform1d(&self, location: i32, x: f64) -> Result<(), GLCoreError>
Source§fn glUniform2d(&self, location: i32, x: f64, y: f64) -> Result<(), GLCoreError>
fn glUniform2d(&self, location: i32, x: f64, y: f64) -> Result<(), GLCoreError>
Source§fn glUniform3d(
&self,
location: i32,
x: f64,
y: f64,
z: f64,
) -> Result<(), GLCoreError>
fn glUniform3d( &self, location: i32, x: f64, y: f64, z: f64, ) -> Result<(), GLCoreError>
Source§fn glUniform4d(
&self,
location: i32,
x: f64,
y: f64,
z: f64,
w: f64,
) -> Result<(), GLCoreError>
fn glUniform4d( &self, location: i32, x: f64, y: f64, z: f64, w: f64, ) -> Result<(), GLCoreError>
Source§fn glUniform1dv(
&self,
location: i32,
count: i32,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniform1dv( &self, location: i32, count: i32, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniform2dv(
&self,
location: i32,
count: i32,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniform2dv( &self, location: i32, count: i32, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniform3dv(
&self,
location: i32,
count: i32,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniform3dv( &self, location: i32, count: i32, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniform4dv(
&self,
location: i32,
count: i32,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniform4dv( &self, location: i32, count: i32, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix2dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix2dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix3dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix3dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix4dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix4dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix2x3dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix2x3dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix2x4dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix2x4dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix3x2dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix3x2dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix3x4dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix3x4dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix4x2dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix4x2dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glUniformMatrix4x3dv(
&self,
location: i32,
count: i32,
transpose: u8,
value: *const f64,
) -> Result<(), GLCoreError>
fn glUniformMatrix4x3dv( &self, location: i32, count: i32, transpose: u8, value: *const f64, ) -> Result<(), GLCoreError>
Source§fn glGetUniformdv(
&self,
program: u32,
location: i32,
params: *mut f64,
) -> Result<(), GLCoreError>
fn glGetUniformdv( &self, program: u32, location: i32, params: *mut f64, ) -> Result<(), GLCoreError>
Source§fn glGetSubroutineUniformLocation(
&self,
program: u32,
shadertype: u32,
name: *const i8,
) -> Result<i32, GLCoreError>
fn glGetSubroutineUniformLocation( &self, program: u32, shadertype: u32, name: *const i8, ) -> Result<i32, GLCoreError>
Source§fn glGetSubroutineIndex(
&self,
program: u32,
shadertype: u32,
name: *const i8,
) -> Result<u32, GLCoreError>
fn glGetSubroutineIndex( &self, program: u32, shadertype: u32, name: *const i8, ) -> Result<u32, GLCoreError>
Source§fn glGetActiveSubroutineUniformiv(
&self,
program: u32,
shadertype: u32,
index: u32,
pname: u32,
values: *mut i32,
) -> Result<(), GLCoreError>
fn glGetActiveSubroutineUniformiv( &self, program: u32, shadertype: u32, index: u32, pname: u32, values: *mut i32, ) -> Result<(), GLCoreError>
Source§fn glGetActiveSubroutineUniformName(
&self,
program: u32,
shadertype: u32,
index: u32,
bufSize: i32,
length: *mut i32,
name: *mut i8,
) -> Result<(), GLCoreError>
fn glGetActiveSubroutineUniformName( &self, program: u32, shadertype: u32, index: u32, bufSize: i32, length: *mut i32, name: *mut i8, ) -> Result<(), GLCoreError>
Source§fn glGetActiveSubroutineName(
&self,
program: u32,
shadertype: u32,
index: u32,
bufSize: i32,
length: *mut i32,
name: *mut i8,
) -> Result<(), GLCoreError>
fn glGetActiveSubroutineName( &self, program: u32, shadertype: u32, index: u32, bufSize: i32, length: *mut i32, name: *mut i8, ) -> Result<(), GLCoreError>
Source§fn glUniformSubroutinesuiv(
&self,
shadertype: u32,
count: i32,
indices: *const u32,
) -> Result<(), GLCoreError>
fn glUniformSubroutinesuiv( &self, shadertype: u32, count: i32, indices: *const u32, ) -> Result<(), GLCoreError>
Source§fn glGetUniformSubroutineuiv(
&self,
shadertype: u32,
location: i32,
params: *mut u32,
) -> Result<(), GLCoreError>
fn glGetUniformSubroutineuiv( &self, shadertype: u32, location: i32, params: *mut u32, ) -> Result<(), GLCoreError>
Source§fn glGetProgramStageiv(
&self,
program: u32,
shadertype: u32,
pname: u32,
values: *mut i32,
) -> Result<(), GLCoreError>
fn glGetProgramStageiv( &self, program: u32, shadertype: u32, pname: u32, values: *mut i32, ) -> Result<(), GLCoreError>
Source§fn glPatchParameteri(&self, pname: u32, value: i32) -> Result<(), GLCoreError>
fn glPatchParameteri(&self, pname: u32, value: i32) -> Result<(), GLCoreError>
Source§fn glPatchParameterfv(
&self,
pname: u32,
values: *const f32,
) -> Result<(), GLCoreError>
fn glPatchParameterfv( &self, pname: u32, values: *const f32, ) -> Result<(), GLCoreError>
Source§fn glBindTransformFeedback(
&self,
target: u32,
id: u32,
) -> Result<(), GLCoreError>
fn glBindTransformFeedback( &self, target: u32, id: u32, ) -> Result<(), GLCoreError>
Source§fn glDeleteTransformFeedbacks(
&self,
n: i32,
ids: *const u32,
) -> Result<(), GLCoreError>
fn glDeleteTransformFeedbacks( &self, n: i32, ids: *const u32, ) -> Result<(), GLCoreError>
Source§fn glGenTransformFeedbacks(
&self,
n: i32,
ids: *mut u32,
) -> Result<(), GLCoreError>
fn glGenTransformFeedbacks( &self, n: i32, ids: *mut u32, ) -> Result<(), GLCoreError>
Source§fn glIsTransformFeedback(&self, id: u32) -> Result<u8, GLCoreError>
fn glIsTransformFeedback(&self, id: u32) -> Result<u8, GLCoreError>
Source§fn glPauseTransformFeedback(&self) -> Result<(), GLCoreError>
fn glPauseTransformFeedback(&self) -> Result<(), GLCoreError>
Source§fn glResumeTransformFeedback(&self) -> Result<(), GLCoreError>
fn glResumeTransformFeedback(&self) -> Result<(), GLCoreError>
Source§fn glDrawTransformFeedback(&self, mode: u32, id: u32) -> Result<(), GLCoreError>
fn glDrawTransformFeedback(&self, mode: u32, id: u32) -> Result<(), GLCoreError>
Source§fn glDrawTransformFeedbackStream(
&self,
mode: u32,
id: u32,
stream: u32,
) -> Result<(), GLCoreError>
fn glDrawTransformFeedbackStream( &self, mode: u32, id: u32, stream: u32, ) -> Result<(), GLCoreError>
Source§fn glBeginQueryIndexed(
&self,
target: u32,
index: u32,
id: u32,
) -> Result<(), GLCoreError>
fn glBeginQueryIndexed( &self, target: u32, index: u32, id: u32, ) -> Result<(), GLCoreError>
Source§fn glEndQueryIndexed(&self, target: u32, index: u32) -> Result<(), GLCoreError>
fn glEndQueryIndexed(&self, target: u32, index: u32) -> Result<(), GLCoreError>
impl Copy for Version40
impl Eq for Version40
impl StructuralPartialEq for Version40
Auto Trait Implementations§
impl Freeze for Version40
impl RefUnwindSafe for Version40
impl Send for Version40
impl Sync for Version40
impl Unpin for Version40
impl UnwindSafe for Version40
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.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>
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>
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.