pub struct FsCurvHeader {
pub curv_magic: [u8; 3],
pub num_vertices: i32,
pub num_faces: i32,
pub num_values_per_vertex: i32,
}
Fields§
§curv_magic: [u8; 3]
§num_vertices: i32
§num_faces: i32
§num_values_per_vertex: i32
Implementations§
Source§impl FsCurvHeader
impl FsCurvHeader
Sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<FsCurvHeader>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<FsCurvHeader>
Read a Curv header from a file. If the file’s name ends with “.gz”, the file is assumed to need GZip decoding. This is not typically the case for FreeSurfer Curv files, but very handy (and it helps us to reduce the size of our test data).
Sourcepub fn from_reader<S>(input: S) -> Result<FsCurvHeader>where
S: BufRead,
pub fn from_reader<S>(input: S) -> Result<FsCurvHeader>where
S: BufRead,
Read a Curv header from the given byte stream. It is assumed that the input is currently at the start of the Curv header.
Trait Implementations§
Source§impl Clone for FsCurvHeader
impl Clone for FsCurvHeader
Source§fn clone(&self) -> FsCurvHeader
fn clone(&self) -> FsCurvHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FsCurvHeader
impl Debug for FsCurvHeader
Source§impl Default for FsCurvHeader
impl Default for FsCurvHeader
Source§fn default() -> FsCurvHeader
fn default() -> FsCurvHeader
Returns the “default value” for a type. Read more
Source§impl PartialEq for FsCurvHeader
impl PartialEq for FsCurvHeader
impl StructuralPartialEq for FsCurvHeader
Auto Trait Implementations§
impl Freeze for FsCurvHeader
impl RefUnwindSafe for FsCurvHeader
impl Send for FsCurvHeader
impl Sync for FsCurvHeader
impl Unpin for FsCurvHeader
impl UnwindSafe for FsCurvHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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