pub struct SnapReader<'a> {
pub ok: bool,
/* private fields */
}Expand description
Bounds-checked read cursor for snapshot images. (b3SnapReader)
Fields§
§ok: boolImplementations§
Source§impl<'a> SnapReader<'a>
impl<'a> SnapReader<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn cursor(&self) -> usize
pub fn set_cursor(&mut self, cursor: usize)
pub fn bytes(&mut self, n: usize) -> Option<&'a [u8]>
pub fn copy_bytes(&mut self, dst: &mut [u8])
pub fn u8(&mut self) -> u8
pub fn u16(&mut self) -> u16
pub fn u32(&mut self) -> u32
pub fn u64(&mut self) -> u64
pub fn i32(&mut self) -> i32
pub fn f32(&mut self) -> f32
pub fn f64(&mut self) -> f64
pub fn bool(&mut self) -> bool
pub fn vec3(&mut self) -> Vec3
pub fn quat(&mut self) -> Quat
pub fn transform(&mut self) -> Transform
pub fn pos(&mut self) -> Pos
pub fn world_xf(&mut self) -> WorldTransform
pub fn matrix3(&mut self) -> Matrix3
pub fn aabb(&mut self) -> Aabb
pub fn sphere(&mut self) -> Sphere
pub fn capsule(&mut self) -> Capsule
pub fn filter(&mut self) -> Filter
pub fn material(&mut self) -> SurfaceMaterial
Source§impl SnapReader<'_>
impl SnapReader<'_>
Source§impl<'a> SnapReader<'a>
impl<'a> SnapReader<'a>
pub fn u24(&mut self) -> u32
Sourcepub fn str_owned(&mut self) -> String
pub fn str_owned(&mut self) -> String
(b3RecR_STR) — empty string for the 0xFFFF null sentinel.
pub fn body_str(&mut self) -> String
pub fn shape_str(&mut self) -> String
pub fn world_id(&mut self) -> WorldId
pub fn body_id(&mut self) -> BodyId
pub fn shape_id(&mut self) -> ShapeId
pub fn joint_id(&mut self) -> JointId
pub fn mass_data(&mut self) -> MassData
pub fn locks(&mut self) -> MotionLocks
pub fn query_filter(&mut self) -> QueryFilter
pub fn shape_proxy(&mut self) -> ShapeProxy
pub fn explosion_def(&mut self) -> ExplosionDef
pub fn body_def(&mut self) -> BodyDef
pub fn shape_def(&mut self) -> ShapeDef
pub fn parallel_joint_def(&mut self) -> ParallelJointDef
pub fn distance_joint_def(&mut self) -> DistanceJointDef
pub fn filter_joint_def(&mut self) -> FilterJointDef
pub fn motor_joint_def(&mut self) -> MotorJointDef
pub fn prismatic_joint_def(&mut self) -> PrismaticJointDef
pub fn revolute_joint_def(&mut self) -> RevoluteJointDef
pub fn spherical_joint_def(&mut self) -> SphericalJointDef
pub fn weld_joint_def(&mut self) -> WeldJointDef
pub fn wheel_joint_def(&mut self) -> WheelJointDef
Trait Implementations§
Source§impl<'a> Clone for SnapReader<'a>
impl<'a> Clone for SnapReader<'a>
Source§fn clone(&self) -> SnapReader<'a>
fn clone(&self) -> SnapReader<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SnapReader<'a>
impl<'a> RefUnwindSafe for SnapReader<'a>
impl<'a> Send for SnapReader<'a>
impl<'a> Sync for SnapReader<'a>
impl<'a> Unpin for SnapReader<'a>
impl<'a> UnsafeUnpin for SnapReader<'a>
impl<'a> UnwindSafe for SnapReader<'a>
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