pub struct Reader<'a> {
pub exchange: &'a Exchange,
}Expand description
The instances of a file, read by type.
Fields§
§exchange: &'a ExchangeImplementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn point(&self, scope: &Scope, id: u64) -> GeopResult<P3>
pub fn direction(&self, scope: &Scope, id: u64) -> GeopResult<P3>
Sourcepub fn vector(&self, scope: &Scope, id: u64) -> GeopResult<P3>
pub fn vector(&self, scope: &Scope, id: u64) -> GeopResult<P3>
A VECTOR, its magnitude a length.
pub fn frame(&self, scope: &Scope, id: u64) -> GeopResult<Frame>
Sourcepub fn curve(&self, scope: &Scope, id: u64) -> GeopResult<(CurveDef, bool)>
pub fn curve(&self, scope: &Scope, id: u64) -> GeopResult<(CurveDef, bool)>
The curve #id, and whether the curve as used runs against the one
it is defined by (a TRIMMED_CURVE whose sense disagrees).
pub fn surface(&self, scope: &Scope, id: u64) -> GeopResult<SurfaceDef>
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn instance(&self, id: u64) -> GeopResult<&'a Instance>
Sourcepub fn args(&self, id: u64, name: &str) -> GeopResult<Args<'a>>
pub fn args(&self, id: u64, name: &str) -> GeopResult<Args<'a>>
The record name of the instance #id, which has to be of that
type.
Sourcepub fn args_of_any(
&self,
id: u64,
names: &[&'static str],
) -> GeopResult<(&'static str, Args<'a>)>
pub fn args_of_any( &self, id: u64, names: &[&'static str], ) -> GeopResult<(&'static str, Args<'a>)>
The record of the first of names the instance #id is of, and
which one it is.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'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