pptx 0.1.0

A Rust library for creating and manipulating PowerPoint (.pptx) files
Documentation
//! `to_xml_str` implementation for `PresetGeometry`.

use super::PresetGeometry;

impl PresetGeometry {
    /// Return the OOXML preset geometry name (the `prst` attribute value).
    // exhaustive enum conversion
    #[allow(clippy::too_many_lines)]
    #[must_use]
    pub fn to_xml_str(&self) -> &str {
        match self {
            Self::AccentBorderCallout1 => "accentBorderCallout1",
            Self::AccentBorderCallout2 => "accentBorderCallout2",
            Self::AccentBorderCallout3 => "accentBorderCallout3",
            Self::AccentCallout1 => "accentCallout1",
            Self::AccentCallout2 => "accentCallout2",
            Self::AccentCallout3 => "accentCallout3",
            Self::ActionButtonBackPrevious => "actionButtonBackPrevious",
            Self::ActionButtonBeginning => "actionButtonBeginning",
            Self::ActionButtonBlank => "actionButtonBlank",
            Self::ActionButtonDocument => "actionButtonDocument",
            Self::ActionButtonEnd => "actionButtonEnd",
            Self::ActionButtonForwardNext => "actionButtonForwardNext",
            Self::ActionButtonHelp => "actionButtonHelp",
            Self::ActionButtonHome => "actionButtonHome",
            Self::ActionButtonInformation => "actionButtonInformation",
            Self::ActionButtonMovie => "actionButtonMovie",
            Self::ActionButtonReturn => "actionButtonReturn",
            Self::ActionButtonSound => "actionButtonSound",
            Self::Arc => "arc",
            Self::BentArrow => "bentArrow",
            Self::BentConnector2 => "bentConnector2",
            Self::BentConnector3 => "bentConnector3",
            Self::BentConnector4 => "bentConnector4",
            Self::BentConnector5 => "bentConnector5",
            Self::BentUpArrow => "bentUpArrow",
            Self::Bevel => "bevel",
            Self::BlockArc => "blockArc",
            Self::BorderCallout1 => "borderCallout1",
            Self::BorderCallout2 => "borderCallout2",
            Self::BorderCallout3 => "borderCallout3",
            Self::BracePair => "bracePair",
            Self::BracketPair => "bracketPair",
            Self::Callout1 => "callout1",
            Self::Callout2 => "callout2",
            Self::Callout3 => "callout3",
            Self::Can => "can",
            Self::ChartPlus => "chartPlus",
            Self::ChartStar => "chartStar",
            Self::ChartX => "chartX",
            Self::Chevron => "chevron",
            Self::Chord => "chord",
            Self::CircularArrow => "circularArrow",
            Self::Cloud => "cloud",
            Self::CloudCallout => "cloudCallout",
            Self::Corner => "corner",
            Self::CornerTabs => "cornerTabs",
            Self::Cube => "cube",
            Self::CurvedConnector2 => "curvedConnector2",
            Self::CurvedConnector3 => "curvedConnector3",
            Self::CurvedConnector4 => "curvedConnector4",
            Self::CurvedConnector5 => "curvedConnector5",
            Self::CurvedDownArrow => "curvedDownArrow",
            Self::CurvedLeftArrow => "curvedLeftArrow",
            Self::CurvedRightArrow => "curvedRightArrow",
            Self::CurvedUpArrow => "curvedUpArrow",
            Self::Decagon => "decagon",
            Self::DiagStripe => "diagStripe",
            Self::Diamond => "diamond",
            Self::Dodecagon => "dodecagon",
            Self::Donut => "donut",
            Self::DoubleWave => "doubleWave",
            Self::DownArrow => "downArrow",
            Self::DownArrowCallout => "downArrowCallout",
            Self::Ellipse => "ellipse",
            Self::EllipseRibbon => "ellipseRibbon",
            Self::EllipseRibbon2 => "ellipseRibbon2",
            Self::FlowChartAlternateProcess => "flowChartAlternateProcess",
            Self::FlowChartCollate => "flowChartCollate",
            Self::FlowChartConnector => "flowChartConnector",
            Self::FlowChartDecision => "flowChartDecision",
            Self::FlowChartDelay => "flowChartDelay",
            Self::FlowChartDisplay => "flowChartDisplay",
            Self::FlowChartDocument => "flowChartDocument",
            Self::FlowChartExtract => "flowChartExtract",
            Self::FlowChartInputOutput => "flowChartInputOutput",
            Self::FlowChartInternalStorage => "flowChartInternalStorage",
            Self::FlowChartMagneticDisk => "flowChartMagneticDisk",
            Self::FlowChartMagneticDrum => "flowChartMagneticDrum",
            Self::FlowChartMagneticTape => "flowChartMagneticTape",
            Self::FlowChartManualInput => "flowChartManualInput",
            Self::FlowChartManualOperation => "flowChartManualOperation",
            Self::FlowChartMerge => "flowChartMerge",
            Self::FlowChartMultidocument => "flowChartMultidocument",
            Self::FlowChartOfflineStorage => "flowChartOfflineStorage",
            Self::FlowChartOffpageConnector => "flowChartOffpageConnector",
            Self::FlowChartOnlineStorage => "flowChartOnlineStorage",
            Self::FlowChartOr => "flowChartOr",
            Self::FlowChartPredefinedProcess => "flowChartPredefinedProcess",
            Self::FlowChartPreparation => "flowChartPreparation",
            Self::FlowChartProcess => "flowChartProcess",
            Self::FlowChartPunchedCard => "flowChartPunchedCard",
            Self::FlowChartPunchedTape => "flowChartPunchedTape",
            Self::FlowChartSort => "flowChartSort",
            Self::FlowChartSummingJunction => "flowChartSummingJunction",
            Self::FlowChartTerminator => "flowChartTerminator",
            Self::FoldedCorner => "foldedCorner",
            Self::Frame => "frame",
            Self::Funnel => "funnel",
            Self::Gear6 => "gear6",
            Self::Gear9 => "gear9",
            Self::HalfFrame => "halfFrame",
            Self::Heart => "heart",
            Self::Heptagon => "heptagon",
            Self::Hexagon => "hexagon",
            Self::HomePlate => "homePlate",
            Self::HorizontalScroll => "horizontalScroll",
            Self::IrregularSeal1 => "irregularSeal1",
            Self::IrregularSeal2 => "irregularSeal2",
            Self::LeftArrow => "leftArrow",
            Self::LeftArrowCallout => "leftArrowCallout",
            Self::LeftBrace => "leftBrace",
            Self::LeftBracket => "leftBracket",
            Self::LeftCircularArrow => "leftCircularArrow",
            Self::LeftRightArrow => "leftRightArrow",
            Self::LeftRightArrowCallout => "leftRightArrowCallout",
            Self::LeftRightCircularArrow => "leftRightCircularArrow",
            Self::LeftRightRibbon => "leftRightRibbon",
            Self::LeftRightUpArrow => "leftRightUpArrow",
            Self::LeftUpArrow => "leftUpArrow",
            Self::LightningBolt => "lightningBolt",
            Self::Line => "line",
            Self::LineInv => "lineInv",
            Self::MathDivide => "mathDivide",
            Self::MathEqual => "mathEqual",
            Self::MathMinus => "mathMinus",
            Self::MathMultiply => "mathMultiply",
            Self::MathNotEqual => "mathNotEqual",
            Self::MathPlus => "mathPlus",
            Self::Moon => "moon",
            Self::NoSmoking => "noSmoking",
            Self::NonIsoscelesTrapezoid => "nonIsoscelesTrapezoid",
            Self::NotchedRightArrow => "notchedRightArrow",
            Self::Octagon => "octagon",
            Self::Parallelogram => "parallelogram",
            Self::Pentagon => "pentagon",
            Self::Pie => "pie",
            Self::PieWedge => "pieWedge",
            Self::Plaque => "plaque",
            Self::PlaqueTabs => "plaqueTabs",
            Self::Plus => "plus",
            Self::QuadArrow => "quadArrow",
            Self::QuadArrowCallout => "quadArrowCallout",
            Self::Rect => "rect",
            Self::Ribbon => "ribbon",
            Self::Ribbon2 => "ribbon2",
            Self::RightArrow => "rightArrow",
            Self::RightArrowCallout => "rightArrowCallout",
            Self::RightBrace => "rightBrace",
            Self::RightBracket => "rightBracket",
            Self::Round1Rect => "round1Rect",
            Self::Round2DiagRect => "round2DiagRect",
            Self::Round2SameRect => "round2SameRect",
            Self::RoundRect => "roundRect",
            Self::RtTriangle => "rtTriangle",
            Self::SmileyFace => "smileyFace",
            Self::Snip1Rect => "snip1Rect",
            Self::Snip2DiagRect => "snip2DiagRect",
            Self::Snip2SameRect => "snip2SameRect",
            Self::SnipRoundRect => "snipRoundRect",
            Self::SquareTabs => "squareTabs",
            Self::Star10 => "star10",
            Self::Star12 => "star12",
            Self::Star16 => "star16",
            Self::Star24 => "star24",
            Self::Star32 => "star32",
            Self::Star4 => "star4",
            Self::Star5 => "star5",
            Self::Star6 => "star6",
            Self::Star7 => "star7",
            Self::Star8 => "star8",
            Self::StraightConnector1 => "straightConnector1",
            Self::StripedRightArrow => "stripedRightArrow",
            Self::Sun => "sun",
            Self::SwooshArrow => "swooshArrow",
            Self::Teardrop => "teardrop",
            Self::Trapezoid => "trapezoid",
            Self::Triangle => "triangle",
            Self::UpArrow => "upArrow",
            Self::UpArrowCallout => "upArrowCallout",
            Self::UpDownArrow => "upDownArrow",
            Self::UpDownArrowCallout => "upDownArrowCallout",
            Self::UturnArrow => "uturnArrow",
            Self::VerticalScroll => "verticalScroll",
            Self::Wave => "wave",
            Self::WedgeEllipseCallout => "wedgeEllipseCallout",
            Self::WedgeRectCallout => "wedgeRectCallout",
            Self::WedgeRoundRectCallout => "wedgeRoundRectCallout",
            Self::Other(s) => s.as_str(),
        }
    }
}