pub struct Beam {
pub name: String,
pub path: Option<String>,
pub state: Option<String>,
pub role: Option<BeamRole>,
pub turn: Option<BlockFace>,
pub off: bool,
}Expand description
光束(Project::beams): ビームスプリッターの経路 1 本に名前を付けたもの。経路を選ぶだけで、分岐比・膜・偏光は
追跡で決まる。名前は状態の名前と同じ所(--state、干渉の光束など)で引ける
Fields§
§name: String光束の名前(状態の名前と重ならない)
path: Option<String>ビームスプリッターの経路(BS を通る順の T・R)。省略で状態・プロジェクトの path
state: Option<String>この光束に当てる状態の名前(経路ごとに系の設定を変える)。省略で状態を当てない
role: Option<BeamRole>役割(sample・reference・stray)
turn: Option<BlockFace>玉の面での部分反射で来た道を戻る(ゴーストの経路、干渉計の裏面反射など)。面の反射は境界(膜込み)の反射で、
戻りは鏡の back と同じく前のブロックをたどり、BS では経路の文字で口を選ぶ。戻った先で系は終わる(像面)。
玉(lens ブロック)の面だけ、1 か所
off: bool解析の既定の組から外す
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Beam
impl<'de> Deserialize<'de> for Beam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Beam
impl JsonSchema for Beam
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Beam
Auto Trait Implementations§
impl Freeze for Beam
impl RefUnwindSafe for Beam
impl Send for Beam
impl Sync for Beam
impl Unpin for Beam
impl UnsafeUnpin for Beam
impl UnwindSafe for Beam
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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