pub struct BspEdge {
pub a: UBspValue,
pub b: UBspValue,
}Expand description
A single edge in a BSP model.
Fields§
§a: UBspValueThe index to the first vertex this edge connects
b: UBspValueThe index to the second vertex this edge connects
Trait Implementations§
Source§impl BspValue for BspEdge
impl BspValue for BspEdge
Source§fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
fn bsp_parse(reader: &mut BspByteReader<'_>) -> BspResult<Self>
Parse this value, advancing the byte reader.
Source§fn bsp_struct_size(ctx: &BspParseContext) -> usize
fn bsp_struct_size(ctx: &BspParseContext) -> usize
How big this value is in the BSP file in bytes. If it is a variable size, return
unimplemented!(), as calling this on variable-sized values would be a bug.impl Copy for BspEdge
impl Eq for BspEdge
impl StructuralPartialEq for BspEdge
Auto Trait Implementations§
impl Freeze for BspEdge
impl RefUnwindSafe for BspEdge
impl Send for BspEdge
impl Sync for BspEdge
impl Unpin for BspEdge
impl UnwindSafe for BspEdge
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