pub struct FileSource<'a> {
pub c: &'a SysSpec,
pub replay: Option<&'a dyn Fn(System, &[Option<FaceId>], &str, &mut Vec<String>) -> Result<System>>,
/* private fields */
}Expand description
系のファイルの読み方。ファイルは初めに要るときに 1 回だけ読み(lensbench_project::open::Source)、状態・経路・
プロジェクトの文字列・別の状態の系はそこから引く
Fields§
§c: &'a SysSpec§replay: Option<&'a dyn Fn(System, &[Option<FaceId>], &str, &mut Vec<String>) -> Result<System>>serve で読み込んだ後の変更を当てる(CLI は None)
Implementations§
Trait Implementations§
Source§impl Source for FileSource<'_>
impl Source for FileSource<'_>
Source§fn is_project(&self) -> bool
fn is_project(&self) -> bool
プロジェクトファイル(光束・状態を名前で選ぶ)か。.zmx・系ファイルなら false
Source§fn load(&self, v: &Variant, notes: &mut Vec<String>) -> Result<System>
fn load(&self, v: &Variant, notes: &mut Vec<String>) -> Result<System>
別の読み方(光束・追跡する波長)で読んだ系。serve では読み込んだ後の変更(set・edit)も当て、当てなかった変更は notes に書く
Auto Trait Implementations§
impl<'a> !Freeze for FileSource<'a>
impl<'a> !RefUnwindSafe for FileSource<'a>
impl<'a> !Send for FileSource<'a>
impl<'a> !Sync for FileSource<'a>
impl<'a> !UnwindSafe for FileSource<'a>
impl<'a> Unpin for FileSource<'a>
impl<'a> UnsafeUnpin for FileSource<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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