Struct ftd::image::Image [−][src]
pub struct Image { pub caption: Option<Rendered>, pub src: String, pub alt: Option<Rendered>, pub align: Align, pub link: Option<String>, pub width: Option<i32>, pub height: Option<i32>, pub float: Option<bool>, }
Fields
src: String
alt: Option<Rendered>
align: Align
link: Option<String>
width: Option<i32>
height: Option<i32>
float: Option<bool>
Implementations
impl Image
[src]
impl Image
[src]pub fn to_p1(&self) -> Section
[src]
pub fn from_p1(p1: &Section) -> Result<Self, ParseError>
[src]
pub fn with_caption(self, caption: &str) -> Self
[src]
pub fn with_src(self, src: &str) -> Self
[src]
pub fn with_alt(self, alt: &str) -> Self
[src]
pub fn with_align(self, align: Align) -> Self
[src]
pub fn with_link(self, link: &str) -> Self
[src]
pub fn with_width(self, width: i32) -> Self
[src]
pub fn with_height(self, height: i32) -> Self
[src]
pub fn with_float(self, float: bool) -> Self
[src]
Trait Implementations
impl StructuralPartialEq for Image
[src]
impl StructuralPartialEq for Image
[src]Auto Trait Implementations
impl RefUnwindSafe for Image
impl RefUnwindSafe for Image
impl UnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,