pub struct SheetState {
pub source: Option<SheetSource>,
pub offset: Option<Point>,
pub boards: Vec<SubBoard>,
pub boards_revision: Option<u64>,
}Expand description
One editor’s standing with its block: the value it holds and the history
revision it was last in step at, so a frame in which nothing changed costs
one integer comparison.
What the sheet-and-board editor’s sheet was merged from, kept between frames:
the pcb and diagram blocks it splits back into, and where the diagram was
drawn on the sheet this session (brep_ecad_core::sheet). The two blocks keep
their own BlockSyncs; this is what joins them.
Fields§
§source: Option<SheetSource>§offset: Option<Point>Where the diagram’s content was drawn, held for the session so an undo that re-merges does not move it while the diagram has none stored.
boards: Vec<SubBoard>The boards of their own the assembly places, as last merged, and the revision they were read at: the sheet is merged again when they change.
boards_revision: Option<u64>Trait Implementations§
Source§impl Debug for SheetState
impl Debug for SheetState
Auto Trait Implementations§
impl Forget for SheetState
impl Freeze for SheetStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Component>: Freeze,
PhantomData<Wire>: Freeze,
*const LeafNode<Point, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Point, SetValZST)>>: Freeze,
PhantomData<Label>: Freeze,
PhantomData<Point>: Freeze,
PhantomData<Placement>: Freeze,
PhantomData<Track>: Freeze,
PhantomData<Via>: Freeze,
*const LeafNode<String, i32> is !null: Freeze,
PhantomData<Box<(String, i32)>>: Freeze,
PhantomData<NetClass>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Zone>: Freeze,
PhantomData<BoardGraphic>: Freeze,
PhantomData<BoardCutout>: Freeze,
PhantomData<Terminal>: Freeze,
PhantomData<SheetZone>: Freeze,
*const LeafNode<Uuid, Component> is !null: Freeze,
PhantomData<Box<(Uuid, Component)>>: Freeze,
*const LeafNode<Uuid, (Wire, Wire)> is !null: Freeze,
PhantomData<Box<(Uuid, (Wire, Wire))>>: Freeze,
PhantomData<SubBoard>: Freeze,
impl Move for SheetState
impl RefUnwindSafe for SheetState
impl Send for SheetStatewhere
RawVecInner: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, Point, SetValZST, LeafOrInternal>: Send,
BoxRaw<(Point, SetValZST)>: Send,
NodeRef<Owned, String, i32, LeafOrInternal>: Send,
BoxRaw<(String, i32)>: Send,
NodeRef<Owned, Uuid, Component, LeafOrInternal>: Send,
BoxRaw<(Uuid, Component)>: Send,
NodeRef<Owned, Uuid, (Wire, Wire), LeafOrInternal>: Send,
BoxRaw<(Uuid, (Wire, Wire))>: Send,
impl Sync for SheetStatewhere
RawVecInner: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, Point, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(Point, SetValZST)>: Sync,
NodeRef<Owned, String, i32, LeafOrInternal>: Sync,
BoxRaw<(String, i32)>: Sync,
NodeRef<Owned, Uuid, Component, LeafOrInternal>: Sync,
BoxRaw<(Uuid, Component)>: Sync,
NodeRef<Owned, Uuid, (Wire, Wire), LeafOrInternal>: Sync,
BoxRaw<(Uuid, (Wire, Wire))>: Sync,
impl Unpin for SheetStatewhere
*const u8 is !null: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<Point, SetValZST> is !null: Unpin,
Box<(Point, SetValZST)>: Unpin,
*const LeafNode<String, i32> is !null: Unpin,
Box<(String, i32)>: Unpin,
*const LeafNode<Uuid, Component> is !null: Unpin,
Box<(Uuid, Component)>: Unpin,
*const LeafNode<Uuid, (Wire, Wire)> is !null: Unpin,
Box<(Uuid, (Wire, Wire))>: Unpin,
impl UnsafeUnpin for SheetStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Component>: UnsafeUnpin,
PhantomData<Wire>: UnsafeUnpin,
*const LeafNode<Point, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Point, SetValZST)>>: UnsafeUnpin,
PhantomData<Label>: UnsafeUnpin,
PhantomData<Point>: UnsafeUnpin,
PhantomData<Placement>: UnsafeUnpin,
PhantomData<Track>: UnsafeUnpin,
PhantomData<Via>: UnsafeUnpin,
*const LeafNode<String, i32> is !null: UnsafeUnpin,
PhantomData<Box<(String, i32)>>: UnsafeUnpin,
PhantomData<NetClass>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Zone>: UnsafeUnpin,
PhantomData<BoardGraphic>: UnsafeUnpin,
PhantomData<BoardCutout>: UnsafeUnpin,
PhantomData<Terminal>: UnsafeUnpin,
PhantomData<SheetZone>: UnsafeUnpin,
*const LeafNode<Uuid, Component> is !null: UnsafeUnpin,
PhantomData<Box<(Uuid, Component)>>: UnsafeUnpin,
*const LeafNode<Uuid, (Wire, Wire)> is !null: UnsafeUnpin,
PhantomData<Box<(Uuid, (Wire, Wire))>>: UnsafeUnpin,
PhantomData<SubBoard>: UnsafeUnpin,
impl UnwindSafe for SheetStatewhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<Point, SetValZST>: UnwindSafe,
BTreeMap<String, i32>: UnwindSafe,
BTreeMap<Uuid, Component>: UnwindSafe,
BTreeMap<Uuid, (Wire, Wire)>: UnwindSafe,
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.