pub struct StepFile { /* private fields */ }Expand description
読んだ STEP(実体の番号 → 実体)と長さの単位
Implementations§
Source§impl StepFile
impl StepFile
pub fn get(&self, id: u64) -> Option<&Entity>
pub fn contains(&self, id: u64) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn iter(&self) -> impl Iterator<Item = (u64, &[(String, Vec<Arg>)])>
pub fn iter(&self) -> impl Iterator<Item = (u64, &[(String, Vec<Arg>)])>
(番号, 部分) の並び(並びは決まらない)
Sourcepub fn subset(&self, roots: impl IntoIterator<Item = u64>) -> StepFile
pub fn subset(&self, roots: impl IntoIterator<Item = u64>) -> StepFile
roots から参照で辿れる実体だけの写し(書き出しへの写しに要る分だけを持つ)
Trait Implementations§
impl StructuralPartialEq for StepFile
Auto Trait Implementations§
impl Freeze for StepFile
impl RefUnwindSafe for StepFile
impl Send for StepFile
impl Sync for StepFile
impl Unpin for StepFile
impl UnsafeUnpin for StepFile
impl UnwindSafe for StepFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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