pub struct Entry {
pub id: u32,
pub weight: u32,
pub tags: u32,
pub cost: u32,
pub from: u64,
pub line: Option<Line>,
pub spots: Option<u32>,
}Fields§
§id: u32§weight: u32§cost: u32§from: u64§line: Option<Line>§spots: Option<u32>Implementations§
Source§impl Entry
impl Entry
pub const fn new(id: u32, weight: u32) -> Self
pub const fn tagged(self, tags: u32) -> Self
pub const fn costing(self, cost: u32) -> Self
pub const fn from_tick(self, tick: u64) -> Self
pub const fn in_line(self, line: Line) -> Self
pub const fn at_spots(self, set: u32) -> Self
Trait Implementations§
impl Copy for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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