Struct spreadsheet_ods::CellContentRef
source · pub struct CellContentRef<'a> {
pub value: &'a Value,
pub style: Option<&'a CellStyleRef>,
pub formula: Option<&'a String>,
pub repeat: u32,
pub validation_name: Option<&'a ValidationRef>,
pub span: CellSpan,
pub matrix_span: CellSpan,
pub annotation: Option<&'a Annotation>,
pub draw_frames: Option<&'a Vec<DrawFrame>>,
}
Expand description
Holds references to the combined content of a cell. A temporary to hold the data when iterating over a sheet.
Fields§
§value: &'a Value
Reference to the cell value.
style: Option<&'a CellStyleRef>
Reference to the stylename.
formula: Option<&'a String>
Reference to the cell formula.
repeat: u32
Reference to the repeat count.
validation_name: Option<&'a ValidationRef>
Reference to a cell validation.
span: CellSpan
Reference to the cellspan.
matrix_span: CellSpan
Reference to a matrix cellspan.
annotation: Option<&'a Annotation>
Reference to an annotation.
draw_frames: Option<&'a Vec<DrawFrame>>
Reference to draw-frames.
Implementations§
source§impl<'a> CellContentRef<'a>
impl<'a> CellContentRef<'a>
sourcepub fn style(&self) -> Option<&'a CellStyleRef>
pub fn style(&self) -> Option<&'a CellStyleRef>
Returns the cell style.
sourcepub fn validation(&self) -> Option<&'a ValidationRef>
pub fn validation(&self) -> Option<&'a ValidationRef>
Returns the validation name.
sourcepub fn matrix_row_span(&self) -> u32
pub fn matrix_row_span(&self) -> u32
Returns the row span for a matrix.
sourcepub fn matrix_col_span(&self) -> u32
pub fn matrix_col_span(&self) -> u32
Returns the col span for a matrix.
sourcepub fn annotation(&self) -> Option<&'a Annotation>
pub fn annotation(&self) -> Option<&'a Annotation>
Returns the validation name.
sourcepub fn draw_frames(&self) -> Option<&'a Vec<DrawFrame>>
pub fn draw_frames(&self) -> Option<&'a Vec<DrawFrame>>
Returns draw frames.
sourcepub fn to_owned(&self) -> CellContent
pub fn to_owned(&self) -> CellContent
Creates a owned CellContent.
Trait Implementations§
source§impl<'a> Clone for CellContentRef<'a>
impl<'a> Clone for CellContentRef<'a>
source§fn clone(&self) -> CellContentRef<'a>
fn clone(&self) -> CellContentRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for CellContentRef<'a>
impl<'a> Debug for CellContentRef<'a>
impl<'a> Copy for CellContentRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CellContentRef<'a>
impl<'a> RefUnwindSafe for CellContentRef<'a>
impl<'a> Send for CellContentRef<'a>
impl<'a> Sync for CellContentRef<'a>
impl<'a> Unpin for CellContentRef<'a>
impl<'a> UnwindSafe for CellContentRef<'a>
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)