pub enum AnchorMode {
MoveAndSize,
MoveOnly,
Absolute,
}Expand description
How a floating object is pinned to the grid when its cells move or resize. Mirrors Excel’s
Format ▸ Size and Properties ▸ Properties, stored in the file as the anchor’s editAs:
twoCell (absent editAs), oneCell and absolute.
Variants§
MoveAndSize
Move and size with cells (Excel’s default; <xdr:twoCellAnchor>).
MoveOnly
Move but don’t size with cells (<xdr:twoCellAnchor editAs="oneCell"> / <xdr:oneCellAnchor>).
Absolute
Don’t move or size with cells (editAs="absolute" / <xdr:absoluteAnchor>).
Trait Implementations§
Source§impl Clone for AnchorMode
impl Clone for AnchorMode
Source§fn clone(&self) -> AnchorMode
fn clone(&self) -> AnchorMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnchorMode
Source§impl Debug for AnchorMode
impl Debug for AnchorMode
Source§impl Default for AnchorMode
impl Default for AnchorMode
Source§fn default() -> AnchorMode
fn default() -> AnchorMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnchorMode
impl<'de> Deserialize<'de> for AnchorMode
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
impl Eq for AnchorMode
Source§impl Hash for AnchorMode
impl Hash for AnchorMode
Source§impl PartialEq for AnchorMode
impl PartialEq for AnchorMode
Source§impl Serialize for AnchorMode
impl Serialize for AnchorMode
impl StructuralPartialEq for AnchorMode
Auto Trait Implementations§
impl Freeze for AnchorMode
impl RefUnwindSafe for AnchorMode
impl Send for AnchorMode
impl Sync for AnchorMode
impl Unpin for AnchorMode
impl UnsafeUnpin for AnchorMode
impl UnwindSafe for AnchorMode
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
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.