pub struct Footnote {
pub content: Box<Value>,
pub marker: Option<Box<Value>>,
pub show: bool,
/* private fields */
}Expand description
A footnote in a PivotTable.
A footnote is attached directly to a Value, but it will only be displayed correctly if it is also added to PivotTable::footnotes for its pivot table.
Fields§
§content: Box<Value>The footnote text.
marker: Option<Box<Value>>The footnote marker.
This is usually None, in which case FootnoteMarkerType determines
the default marker.
show: boolWhether to show the footnote.
Implementations§
Source§impl Footnote
impl Footnote
Sourcepub fn with_marker(self, marker: Option<Value>) -> Self
pub fn with_marker(self, marker: Option<Value>) -> Self
Returns the footnote with the given optional marker.
Sourcepub fn with_some_marker(self, marker: impl Into<Value>) -> Self
pub fn with_some_marker(self, marker: impl Into<Value>) -> Self
Returns the footnote with the given marker.
Sourcepub fn with_index(self, index: usize) -> Self
pub fn with_index(self, index: usize) -> Self
Return the footnote with the given index.
Sourcepub fn display_marker(&self, options: impl Into<ValueOptions>) -> impl Display
pub fn display_marker(&self, options: impl Into<ValueOptions>) -> impl Display
Returns an object for formatting the footnote’s marker.
Sourcepub fn display_content(&self, options: impl Into<ValueOptions>) -> impl Display
pub fn display_content(&self, options: impl Into<ValueOptions>) -> impl Display
Returns an object for formatting the footnote’s text.
Trait Implementations§
Source§impl BinWrite for Footnote
impl BinWrite for Footnote
Source§fn write_options<W: Write + Seek>(
&self,
writer: &mut W,
endian: Endian,
args: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, writer: &mut W, endian: Endian, args: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§impl FromIterator<Footnote> for Footnotes
impl FromIterator<Footnote> for Footnotes
impl StructuralPartialEq for Footnote
Auto Trait Implementations§
impl Freeze for Footnote
impl RefUnwindSafe for Footnote
impl Send for Footnote
impl Sync for Footnote
impl Unpin for Footnote
impl UnsafeUnpin for Footnote
impl UnwindSafe for Footnote
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§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