pub struct ZmxMerit {
pub terms: Vec<Value>,
pub sources: Vec<usize>,
pub notes: Vec<String>,
pub configs: usize,
}Expand description
.zmx から写した評価関数
Fields§
§terms: Vec<Value>項の JSON(crate::merit::terms_from_json で読める)
sources: Vec<usize>項ごとの元の行の番号(MeritRow::row。項の誤りを行の番号で知らせるのに使う)
notes: Vec<String>飛ばした行などの注意
configs: usize項が使う構成の数(CONF の最大、CONF が無ければ 1)
Trait Implementations§
impl StructuralPartialEq for ZmxMerit
Auto Trait Implementations§
impl Freeze for ZmxMerit
impl RefUnwindSafe for ZmxMerit
impl Send for ZmxMerit
impl Sync for ZmxMerit
impl Unpin for ZmxMerit
impl UnsafeUnpin for ZmxMerit
impl UnwindSafe for ZmxMerit
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